Outgoing Webhooks
by IT-Projects LLC https://twitter.com/OdooFree , Ivan Yelizariev https://twitter.com/OdooFreeLines of code | 13 |
Technical Name |
base_automation_webhook |
Website | https://twitter.com/OdooFree |
Also available in version | v 8.0 v 15.0 v 11.0 v 12.0 v 14.0 v 10.0 v 13.0 |
Outgoing Webhooks
This simple module opens you a door for infinite integrations
Version: v16.0.2.0.0
Tested and maintained by
IT Projects Labs
Assistance: help@itpp.dev
- Notify in telegram when new task assigned to me is created


- Create an github issue when the problem is confirmed in Odoo
- Send PUSH notification when an eCommerce product becomes out of stock


- Send SMS to a customer on receiving request

You may send this page to your IT guys to evaluate the possibilities or tell us your concerns
Let our expertise work for you!
(Doors and windows below are clickable)
/itpp-labs-1100.jpg)
/itpp-labs-930.jpg)
/itpp-labs-690.jpg)
Outgoing Webhooks
- Install this module in a usual way
Documentation
make_request is a wrapper for requests.request. Check requests lib documentation for details.
Configuration
Activate Developer Mode
Open menu [[ Settings ]] >> Technical >> Automation >> Automated Actions
Create new record and set field Action To Do to Execute Python Code. For example:
Action Name: Test
Model: Contact
Trigger: On Creation
Apply on: Optional. You can specify a condition that must be satisfied before record is updated. The field may not be available depending on Trigger Condition value.
Action To Do: Execute Python Code
Python Code:
WEBHOOK="https://PASTE-YOUR-WEBHOOK-URL" data = { "partner_id": record.id, "partner_name": record.name, } make_request("POST", WEBHOOK, data=data)
Save everything
Testing
- Make corresponding action (in our example, create new Contact)
- RESULT: the event is notified via webhook
Handling field changing
If you need to call a webhook on updating specific field, do as following:
- set Apply On to a domain like [['FIELD', '=', TARGET_VALUE]]
RESULT: webhook will be sent only when field value is changed to TARGET_VALUE.
Please log in to comment on this module