{ "info": { "author": "Camptocamp,Odoo Community Association (OCA)", "author_email": "support@odoo-community.org", "bugtrack_url": null, "classifiers": [ "Framework :: Odoo", "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", "Programming Language :: Python" ], "description": "=================\nComponents Events\n=================\n\n.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n !! This file is generated by oca-gen-addon-readme !!\n !! changes will be overwritten. !!\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-LGPL--3-blue.png\n :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html\n :alt: License: LGPL-3\n.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fconnector-lightgray.png?logo=github\n :target: https://github.com/OCA/connector/tree/13.0/component_event\n :alt: OCA/connector\n.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png\n :target: https://translation.odoo-community.org/projects/connector-13-0/connector-13-0-component_event\n :alt: Translate me on Weblate\n.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png\n :target: https://runbot.odoo-community.org/runbot/102/13.0\n :alt: Try me on Runbot\n\n|badge1| |badge2| |badge3| |badge4| |badge5| \n\nThis module implements an event system (`Observer pattern`_) and is a\nbase block for the Connector Framework. It can be used without\nusing the full Connector though. It is built upon the ``component`` module.\n\nDocumentation: http://odoo-connector.com/\n\n.. _Observer pattern: https://en.wikipedia.org/wiki/Observer_pattern\n\n**Table of contents**\n\n.. contents::\n :local:\n\nUsage\n=====\n\nAs a developer, you have access to a events system. You can find the\ndocumentation in the code or on http://odoo-connector.com\n\nIn a nutshell, you can create trigger events::\n\n class Base(models.AbstractModel):\n _inherit = 'base'\n\n @api.model\n def create(self, vals):\n record = super(Base, self).create(vals)\n self._event('on_record_create').notify(record, fields=vals.keys())\n return record\n\nAnd subscribe listeners to the events::\n\n from odoo.addons.component.core import Component\n from odoo.addons.component_event import skip_if\n\n class MagentoListener(Component):\n _name = 'magento.event.listener'\n _inherit = 'base.connector.listener'\n\n @skip_if(lambda self, record, **kwargs: self.no_connector_export(record))\n def on_record_create(self, record, fields=None):\n \"\"\" Called when a record is created \"\"\"\n record.with_delay().export_record(fields=fields)\n\n\nThis module triggers 3 events:\n\n* ``on_record_create(record, fields=None)``\n* ``on_record_write(record, fields=None)``\n* ``on_record_unlink(record)``\n\nChangelog\n=========\n\n.. [ The change log. The goal of this file is to help readers\n understand changes between version. The primary audience is\n end users and integrators. Purely technical changes such as\n code refactoring must not be mentioned here.\n\n This file may contain ONE level of section titles, underlined\n with the ~ (tilde) character. Other section markers are\n forbidden and will likely break the structure of the README.rst\n or other documents where this fragment is included. ]\n\nNext\n~~~~\n\n12.0.1.0.0 (2018-11-26)\n~~~~~~~~~~~~~~~~~~~~~~~\n\n* [MIGRATION] from 12.0 branched at rev. 324e006\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues `_.\nIn case of trouble, please check there if your issue has already been reported.\nIf you spotted it first, help us smashing it by providing a detailed and welcomed\n`feedback `_.\n\nDo not contact contributors directly about support or help with technical issues.\n\nCredits\n=======\n\nAuthors\n~~~~~~~\n\n* Camptocamp\n\nContributors\n~~~~~~~~~~~~\n\n* Guewen Baconnier \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\nThis module is part of the `OCA/connector `_ project on GitHub.\n\nYou are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://odoo-connector.com", "keywords": "", "license": "LGPL-3", "maintainer": "", "maintainer_email": "", "name": "odoo13-addon-component-event", "package_url": "https://pypi.org/project/odoo13-addon-component-event/", "platform": "", "project_url": "https://pypi.org/project/odoo13-addon-component-event/", "project_urls": { "Homepage": "http://odoo-connector.com" }, "release_url": "https://pypi.org/project/odoo13-addon-component-event/13.0.1.1.1/", "requires_dist": [ "cachetools", "odoo13-addon-component", "odoo (<13.1dev,>=13.0a)" ], "requires_python": ">=3.5", "summary": "Components Events", "version": "13.0.1.1.1", "yanked": false, "yanked_reason": null }, "last_serial": 10729425, "releases": { "13.0.1.0.1": [ { "comment_text": "", "digests": { "md5": "01a752a6e3de15fa1eb208326c757caa", "sha256": "58659e4ae95d62d9f5b3c09bd9f44b3cbbee93b8006c60f9fac71d3e3f6afc6e" }, "downloads": -1, "filename": "odoo13_addon_component_event-13.0.1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "01a752a6e3de15fa1eb208326c757caa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 34227, "upload_time": "2020-05-27T05:19:01", "upload_time_iso_8601": "2020-05-27T05:19:01.883841Z", "url": "https://files.pythonhosted.org/packages/94/37/f3a269c5b9bfcf0c463cc62e6104521000c43d7b7d6553492c17a9413eaa/odoo13_addon_component_event-13.0.1.0.1-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "13.0.1.0.1.dev6": [ { "comment_text": "", "digests": { "md5": "a6c99e830fd76e72521749691a8a0596", "sha256": "3cf7961af0e374a235a85db939711e532dbeaa8a0df40284d1d4b718f7eda22c" }, "downloads": -1, "filename": "odoo13_addon_component_event-13.0.1.0.1.dev6-py3-none-any.whl", "has_sig": false, "md5_digest": "a6c99e830fd76e72521749691a8a0596", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 34237, "upload_time": "2019-10-31T06:10:34", "upload_time_iso_8601": "2019-10-31T06:10:34.349120Z", "url": "https://files.pythonhosted.org/packages/bd/65/0ffd4fb01f0b190dc7ed4c1c2b3a27b1e2e67c5684248a38f21a99edf6a8/odoo13_addon_component_event-13.0.1.0.1.dev6-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "13.0.1.1.0": [ { "comment_text": "", "digests": { "md5": "3f22680d4b87e0916ae9d81cdc1122d2", "sha256": "1741223fe98ac3f2c517578c4d3226cd4392b5c80cadb2507fef02a23576c4ec" }, "downloads": -1, "filename": "odoo13_addon_component_event-13.0.1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "3f22680d4b87e0916ae9d81cdc1122d2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 34272, "upload_time": "2020-11-28T06:39:43", "upload_time_iso_8601": "2020-11-28T06:39:43.950279Z", "url": "https://files.pythonhosted.org/packages/2b/8e/3e9d84d3af56e18d51e9749a8366599de70ea73c4f829ee5817c5003683e/odoo13_addon_component_event-13.0.1.1.0-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "13.0.1.1.1": [ { "comment_text": "", "digests": { "md5": "fdd3f14a08b34a913e08ddbc9414310b", "sha256": "962a23fc15e62c38e79d0151cca79e1f40f5478395f795f5810097f5c605349c" }, "downloads": -1, "filename": "odoo13_addon_component_event-13.0.1.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "fdd3f14a08b34a913e08ddbc9414310b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 34495, "upload_time": "2021-06-24T08:31:19", "upload_time_iso_8601": "2021-06-24T08:31:19.512784Z", "url": "https://files.pythonhosted.org/packages/65/54/a6592ad6a45743383dfb785433d7ffec313777e4e716983422ca607330e5/odoo13_addon_component_event-13.0.1.1.1-py3-none-any.whl", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fdd3f14a08b34a913e08ddbc9414310b", "sha256": "962a23fc15e62c38e79d0151cca79e1f40f5478395f795f5810097f5c605349c" }, "downloads": -1, "filename": "odoo13_addon_component_event-13.0.1.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "fdd3f14a08b34a913e08ddbc9414310b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 34495, "upload_time": "2021-06-24T08:31:19", "upload_time_iso_8601": "2021-06-24T08:31:19.512784Z", "url": "https://files.pythonhosted.org/packages/65/54/a6592ad6a45743383dfb785433d7ffec313777e4e716983422ca607330e5/odoo13_addon_component_event-13.0.1.1.1-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }