v 16.0 Third Party 4 1618
Download for v 16.0 Deploy on Odoo.sh
Lines of code 13
Technical Name base_automation_webhook
Websitehttps://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
You bought this module and need support? Click here!
Lines of code 13
Technical Name base_automation_webhook
Websitehttps://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

Configure notifications in Telegram on important updates in Odoo. No extra module is needed! Check out the detailed instruction:
  • Notify in telegram when new task assigned to me is created
Configure GitHub integration. No extra module is needed! Check out the detailed instruction:
  • Create an github issue when the problem is confirmed in Odoo
IFTTT is a hub for thousands services and IoT devices. With a special Webhooks service, you can connect Odoo with IFTTT. No extra module is needed! Check out the detailed instruction:
  • Send PUSH notification when an eCommerce product becomes out of stock
AWS is much more than just about cloud storage and servers. With AWS you can translate texts; send SMS; analyze text and documents; develop, test, and deploy Robots; predict the future; and even control your Satellites! All this can now be connected to Odoo without extra modules! Check out the detailed instruction:
  • Send SMS to a customer on receiving request
Need more? Anything with webhook support can be connected to Odoo just with this module!
Are you not very much aware of webhooks?
You may send this page to your IT guys to evaluate the possibilities or tell us your concerns

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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.