{ "info": { "author": "Vauxoo, Odoo Community Association (OCA)", "author_email": "support@odoo-community.org", "bugtrack_url": null, "classifiers": [ "Framework :: Odoo", "License :: OSI Approved :: GNU Affero General Public License v3", "Programming Language :: Python :: 2.7" ], "description": ".. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg\n :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n :alt: License: AGPL-3\n\n=======\nWebhook\n=======\n\nModule to receive `webhook `_ events.\nThis module invoke methods to process webhook events.\n\n\nConfiguration\n=============\n\nYou will need create a new module to add your logic to process the events with methods called:\n*def run_CONSUMER_EVENT\\**\nExample with gihub consumer and push event.\n\n.. code-block:: python\n\n @api.one\n def run_github_push_task(self):\n # You will have all request data in \n # variable: self.env.request\n pass\n\n\nWhere CONSUMER is the name of you webhook consumer. e.g. github (Extract from field *name* of *webhook* model)\nWhere EVENT is the name of the event from webhook *request* data.\nWhere *\\** is your particular method to process this event.\n\nTo configure a new webhook you need add all ip or subnet address (with *ip/integer*) owned by your webhook consumer in webhook.address model as data.\n\nExample with github:\n\n.. code-block:: xml\n\n \n \n 192.30.252.0/22\n \n \n\n\nYou need to add a python code to extract event name from webhook request info into `python_code_get_event` field of webhook model.\nYou can get all full data of request webhook from variable `request`\nExample with github:\n\n.. code-block:: xml\n\n \n \n github\n request.httprequest.headers.get('X-Github-Event')\n \n\n\nFull example of create a new webhook configuration data.\n\n.. code-block:: xml\n\n \n \n \n\n \n \n github\n request.httprequest.headers.get('X-Github-Event')\n \n \n \n 192.30.252.0/22\n \n \n\n \n \n\n\n.. figure:: path/to/local/image.png\n :alt: alternative description\n :width: 600 px\n\nUsage\n=====\n\nTo use this module, you need to:\n\n#. Go to your customer webhook configuration from 3rd-party applications\n and use the odoo webhook url HOST/webhook/NAME_WEBHOOK\n\n.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas\n :alt: Try me on Runbot\n :target: https://runbot.odoo-community.org/runbot/{repo_id}/{branch}\n\n.. repo_id is available in https://github.com/OCA/maintainer-tools/blob/master/tools/repos_with_ids.txt\n.. branch is \"8.0\" for example\n\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues\n`_. In case of trouble, please\ncheck there if your issue has already been reported. If you spotted it first,\nhelp us smash it by providing detailed and welcomed feedback.\n\nCredits\n=======\n\nImages\n------\n\n* Odoo Community Association: `Icon `_.\n\nContributors\n------------\n\n* Mois\u00e9s L\u00f3pez \n\nFunders\n-------\n\nThe development of this module has been financially supported by:\n\n* Vauxoo\n\nMaintainer\n----------\n\n.. image:: https://odoo-community.org/logo.png\n :alt: Odoo Community Association\n :target: https://odoo-community.org\n\nThis module is maintained by the OCA.\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\nTo contribute to this module, please visit https://odoo-community.org.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://www.vauxoo.com", "keywords": "", "license": "AGPL-3", "maintainer": "", "maintainer_email": "", "name": "odoo10-addon-webhook", "package_url": "https://pypi.org/project/odoo10-addon-webhook/", "platform": "", "project_url": "https://pypi.org/project/odoo10-addon-webhook/", "project_urls": { "Homepage": "https://www.vauxoo.com" }, "release_url": "https://pypi.org/project/odoo10-addon-webhook/10.0.1.0.0/", "requires_dist": [ "ipaddress", "odoo (<10.1dev,>=10.0)", "requests" ], "requires_python": "", "summary": "Webhook", "version": "10.0.1.0.0" }, "last_serial": 5083103, "releases": { "10.0.1.0.0": [ { "comment_text": "", "digests": { "md5": "3724b32111bf6e427b47e44f1f65995b", "sha256": "08ee5a6b2363db27bdcf6ba2904b93f849f13a6c9d09b806f6cdc2f7fc765772" }, "downloads": -1, "filename": "odoo10_addon_webhook-10.0.1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "3724b32111bf6e427b47e44f1f65995b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 16532, "upload_time": "2017-09-02T04:30:26", "url": "https://files.pythonhosted.org/packages/48/41/56b608a801efa61af19f7bc64d154e31ea67a69ceb07218a3a7107718b39/odoo10_addon_webhook-10.0.1.0.0-py2-none-any.whl" } ], "10.0.1.0.0.99.dev1": [ { "comment_text": "", "digests": { "md5": "d0e3dcbaca89f5c9c8a03ec24a3e8158", "sha256": "94e3f5412630a452f5bde8d6e5111ea2bfda7e4f456d5f16ee33996d7144fd48" }, "downloads": -1, "filename": "odoo10_addon_webhook-10.0.1.0.0.99.dev1-py2-none-any.whl", "has_sig": false, "md5_digest": "d0e3dcbaca89f5c9c8a03ec24a3e8158", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 110170, "upload_time": "2017-12-03T05:36:11", "url": "https://files.pythonhosted.org/packages/af/02/7dad9665c095cb84f6dbef0243fd830a22c620dee6362f6d358e45e4dc92/odoo10_addon_webhook-10.0.1.0.0.99.dev1-py2-none-any.whl" } ], "10.0.1.0.0.99.dev2": [ { "comment_text": "", "digests": { "md5": "5312ae8fe9651e9a578e52f37b3e78af", "sha256": "9af3d61e423b3f35e1fc071ab3fd581c1816078d0916b672782137393cd7bd67" }, "downloads": -1, "filename": "odoo10_addon_webhook-10.0.1.0.0.99.dev2-py2-none-any.whl", "has_sig": false, "md5_digest": "5312ae8fe9651e9a578e52f37b3e78af", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 110194, "upload_time": "2017-12-31T05:34:46", "url": "https://files.pythonhosted.org/packages/96/21/bb4d10e44a16aced623b6cd65431c35b4df0378fd2f72996435222780803/odoo10_addon_webhook-10.0.1.0.0.99.dev2-py2-none-any.whl" } ], "10.0.1.0.0.99.dev3": [ { "comment_text": "", "digests": { "md5": "a9836d80fb23101ec68a5c8c44a7ef2e", "sha256": "088afaee18b73fe88f744637d7e11e12bb88c9c3f1e3898678aefcc001465008" }, "downloads": -1, "filename": "odoo10_addon_webhook-10.0.1.0.0.99.dev3-py2-none-any.whl", "has_sig": false, "md5_digest": "a9836d80fb23101ec68a5c8c44a7ef2e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 110236, "upload_time": "2018-01-17T05:34:33", "url": "https://files.pythonhosted.org/packages/f0/af/8a01e9fd85234c9cc132d7c1d29201561d29c98d7dcc2dd67257808d65a4/odoo10_addon_webhook-10.0.1.0.0.99.dev3-py2-none-any.whl" } ], "10.0.1.0.0.99.dev4": [ { "comment_text": "", "digests": { "md5": "c00fe231388299fc9fb51dcab03fba2d", "sha256": "ebf60fc42b3aced5f7b7610ae8ca918a750f45f41883368e58a9f900b2ae0250" }, "downloads": -1, "filename": "odoo10_addon_webhook-10.0.1.0.0.99.dev4-py2-none-any.whl", "has_sig": false, "md5_digest": "c00fe231388299fc9fb51dcab03fba2d", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 110308, "upload_time": "2018-03-04T05:43:41", "url": "https://files.pythonhosted.org/packages/42/84/5804277d9d67d8b44c9e9f5745db1789d3398190f40224226b988e0532d8/odoo10_addon_webhook-10.0.1.0.0.99.dev4-py2-none-any.whl" } ], "10.0.1.0.0.99.dev5": [ { "comment_text": "", "digests": { "md5": "890e50e5fcec0d9bb58715bd34cbadb4", "sha256": "45fa7283baf32e5a5790d795051b2e2775f1cf3b44643097b20ac088c0827f0d" }, "downloads": -1, "filename": "odoo10_addon_webhook-10.0.1.0.0.99.dev5-py2-none-any.whl", "has_sig": false, "md5_digest": "890e50e5fcec0d9bb58715bd34cbadb4", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 110302, "upload_time": "2018-06-03T04:35:19", "url": "https://files.pythonhosted.org/packages/90/34/18d5384f4e2d72fcc88fd56acbabd55bd8a783372068e3b7ec4783e0b94d/odoo10_addon_webhook-10.0.1.0.0.99.dev5-py2-none-any.whl" } ], "10.0.1.0.0.99.dev6": [ { "comment_text": "", "digests": { "md5": "0d3e2473e30c6eece8456a815c573147", "sha256": "5f0ed86d2ba33158eebc662e60cdd18e264c54d3a99e4a83b66732f502a61eb0" }, "downloads": -1, "filename": "odoo10_addon_webhook-10.0.1.0.0.99.dev6-py2-none-any.whl", "has_sig": false, "md5_digest": "0d3e2473e30c6eece8456a815c573147", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 111465, "upload_time": "2018-06-25T04:39:19", "url": "https://files.pythonhosted.org/packages/a4/d9/ce336d7356db8cd5d13b259c1c561149c90bbd27e33d861ba677c17d02b1/odoo10_addon_webhook-10.0.1.0.0.99.dev6-py2-none-any.whl" } ], "10.0.1.0.0.99.dev7": [ { "comment_text": "", "digests": { "md5": "ccc97dc2b68cd0f778bfcd7cf18a0513", "sha256": "7c5048e7c6bd9a7efc7bdb8ccdab796a7a72000f395fad42ce20d6a5f2befecc" }, "downloads": -1, "filename": "odoo10_addon_webhook-10.0.1.0.0.99.dev7-py2-none-any.whl", "has_sig": false, "md5_digest": "ccc97dc2b68cd0f778bfcd7cf18a0513", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 118401, "upload_time": "2019-04-03T04:56:17", "url": "https://files.pythonhosted.org/packages/2f/b2/11fed096a76709827f0aa8ae9f026df4487cffa6ccbadc4e4337fb1a8f19/odoo10_addon_webhook-10.0.1.0.0.99.dev7-py2-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3724b32111bf6e427b47e44f1f65995b", "sha256": "08ee5a6b2363db27bdcf6ba2904b93f849f13a6c9d09b806f6cdc2f7fc765772" }, "downloads": -1, "filename": "odoo10_addon_webhook-10.0.1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "3724b32111bf6e427b47e44f1f65995b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 16532, "upload_time": "2017-09-02T04:30:26", "url": "https://files.pythonhosted.org/packages/48/41/56b608a801efa61af19f7bc64d154e31ea67a69ceb07218a3a7107718b39/odoo10_addon_webhook-10.0.1.0.0-py2-none-any.whl" } ] }