odoo14-addon-web-create-write-confirm


Nameodoo14-addon-web-create-write-confirm JSON
Version 14.0.1.2.0 PyPI version JSON
download
home_pagehttps://github.com/OCA/web
SummaryConfirm/Alert pop-up before saving
upload_time2023-10-30 16:16:50
maintainer
docs_urlNone
authorSmile, Odoo Community Association (OCA)
requires_python>=3.6
licenseAGPL-3
keywords
VCS
bugtrack_url
requirements bokeh plotly
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ==================================
Confirm/Alert pop-up before saving
==================================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:8b3ce800ac38d54deefd0aec66b698d2cd9b8ea75b5b1b9731ebf9c784c9d09f
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
    :target: https://github.com/OCA/web/tree/14.0/web_create_write_confirm
    :alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_create_write_confirm
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=14.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module provides feature to create custom confirmation or alert dialog when user creates or writes record.
Module includes only methods that you can use in your code. That means programming is always required.
See usage section for more information.

**Table of contents**

.. contents::
   :local:

Usage
=====

Create popup.message record. Specify model_id, field_ids (which fields will trigger alert) and other fields.
Put you code into **get_message_informations** or **execute_processing** method of you model.
Return dict (perform read() to get it).
Here is some examples how you can use this module features in your code.

Confirm res.partner change:

..  code-block:: python

    msg = self.env['popup.message'].create(
        {
            'model_id': self.env['ir.model']._get_id('res.partner')
            'field_ids': [(6, 0, self.env['ir.model.fields'].search([('model', '=', 'res.partner')]).ids)],
            'popup_type': 'confirm',
            'title': 'Warning',
            'message': 'Are you sure want to update record?',
        }
    )
    return msg.read()

Sale order alert:

..  code-block:: python

    msg = self.env['popup.message'].create(
        {
            'model_id': self.env['ir.model']._get_id('sale.order'),
            'field_ids': [(6, 0, self.env['ir.model.fields'].search([('model', '=', 'sale.order')]).ids)],
            'popup_type': 'alert',
            'title': 'Attention',
            'message': 'Sale order was updated.',
        }
    )
    return msg.read()

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_create_write_confirm%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Smile

Contributors
~~~~~~~~~~~~

* `Smile <https://www.smile.eu/en>`_


* `Ooops404 <https://www.ooops404.com>`__:

  * Ilyas <irazor147@gmail.com>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-ilyasProgrammer| image:: https://github.com/ilyasProgrammer.png?size=40px
    :target: https://github.com/ilyasProgrammer
    :alt: ilyasProgrammer

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-ilyasProgrammer| 

This module is part of the `OCA/web <https://github.com/OCA/web/tree/14.0/web_create_write_confirm>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/OCA/web",
    "name": "odoo14-addon-web-create-write-confirm",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "Smile, Odoo Community Association (OCA)",
    "author_email": "support@odoo-community.org",
    "download_url": "",
    "platform": null,
    "description": "==================================\nConfirm/Alert pop-up before saving\n==================================\n\n.. \n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! This file is generated by oca-gen-addon-readme !!\n   !! changes will be overwritten.                   !!\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! source digest: sha256:8b3ce800ac38d54deefd0aec66b698d2cd9b8ea75b5b1b9731ebf9c784c9d09f\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png\n    :target: https://odoo-community.org/page/development-status\n    :alt: Beta\n.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png\n    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n    :alt: License: AGPL-3\n.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github\n    :target: https://github.com/OCA/web/tree/14.0/web_create_write_confirm\n    :alt: OCA/web\n.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png\n    :target: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_create_write_confirm\n    :alt: Translate me on Weblate\n.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png\n    :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=14.0\n    :alt: Try me on Runboat\n\n|badge1| |badge2| |badge3| |badge4| |badge5|\n\nThis module provides feature to create custom confirmation or alert dialog when user creates or writes record.\nModule includes only methods that you can use in your code. That means programming is always required.\nSee usage section for more information.\n\n**Table of contents**\n\n.. contents::\n   :local:\n\nUsage\n=====\n\nCreate popup.message record. Specify model_id, field_ids (which fields will trigger alert) and other fields.\nPut you code into **get_message_informations** or **execute_processing** method of you model.\nReturn dict (perform read() to get it).\nHere is some examples how you can use this module features in your code.\n\nConfirm res.partner change:\n\n..  code-block:: python\n\n    msg = self.env['popup.message'].create(\n        {\n            'model_id': self.env['ir.model']._get_id('res.partner')\n            'field_ids': [(6, 0, self.env['ir.model.fields'].search([('model', '=', 'res.partner')]).ids)],\n            'popup_type': 'confirm',\n            'title': 'Warning',\n            'message': 'Are you sure want to update record?',\n        }\n    )\n    return msg.read()\n\nSale order alert:\n\n..  code-block:: python\n\n    msg = self.env['popup.message'].create(\n        {\n            'model_id': self.env['ir.model']._get_id('sale.order'),\n            'field_ids': [(6, 0, self.env['ir.model.fields'].search([('model', '=', 'sale.order')]).ids)],\n            'popup_type': 'alert',\n            'title': 'Attention',\n            'message': 'Sale order was updated.',\n        }\n    )\n    return msg.read()\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.\nIn case of trouble, please check there if your issue has already been reported.\nIf you spotted it first, help us to smash it by providing a detailed and welcomed\n`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_create_write_confirm%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.\n\nDo not contact contributors directly about support or help with technical issues.\n\nCredits\n=======\n\nAuthors\n~~~~~~~\n\n* Smile\n\nContributors\n~~~~~~~~~~~~\n\n* `Smile <https://www.smile.eu/en>`_\n\n\n* `Ooops404 <https://www.ooops404.com>`__:\n\n  * Ilyas <irazor147@gmail.com>\n\nMaintainers\n~~~~~~~~~~~\n\nThis module is maintained by the OCA.\n\n.. image:: https://odoo-community.org/logo.png\n   :alt: Odoo Community Association\n   :target: https://odoo-community.org\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\n.. |maintainer-ilyasProgrammer| image:: https://github.com/ilyasProgrammer.png?size=40px\n    :target: https://github.com/ilyasProgrammer\n    :alt: ilyasProgrammer\n\nCurrent `maintainer <https://odoo-community.org/page/maintainer-role>`__:\n\n|maintainer-ilyasProgrammer| \n\nThis module is part of the `OCA/web <https://github.com/OCA/web/tree/14.0/web_create_write_confirm>`_ project on GitHub.\n\nYou are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.\n\n\n",
    "bugtrack_url": null,
    "license": "AGPL-3",
    "summary": "Confirm/Alert pop-up before saving",
    "version": "14.0.1.2.0",
    "project_urls": {
        "Homepage": "https://github.com/OCA/web"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8bc024dc99f91ef540fc17c525bb7b79eddddf1b14b1ef3a5725f6b035897095",
                "md5": "3d87c1b7c4d1c9749cdc34ffdc82b43c",
                "sha256": "10879d1a4473a6dacd88b23c46cfb735b7d41339aa100137c70803be003b2561"
            },
            "downloads": -1,
            "filename": "odoo14_addon_web_create_write_confirm-14.0.1.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3d87c1b7c4d1c9749cdc34ffdc82b43c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 28825,
            "upload_time": "2023-10-30T16:16:50",
            "upload_time_iso_8601": "2023-10-30T16:16:50.424280Z",
            "url": "https://files.pythonhosted.org/packages/8b/c0/24dc99f91ef540fc17c525bb7b79eddddf1b14b1ef3a5725f6b035897095/odoo14_addon_web_create_write_confirm-14.0.1.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-30 16:16:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "OCA",
    "github_project": "web",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "bokeh",
            "specs": [
                [
                    "==",
                    "3.1.1"
                ]
            ]
        },
        {
            "name": "plotly",
            "specs": [
                [
                    "==",
                    "5.13.1"
                ]
            ]
        }
    ],
    "lcname": "odoo14-addon-web-create-write-confirm"
}
        
Elapsed time: 0.17000s