Through your user panel
Last updated
Last updated
If you are developing an app for a particular company, you can configure your webhooks through your user panel:
Note
Log in your Odoo instance with your account
Go to Settings ‣ Technical ‣ Automation ‣ Webhooks ‣ Configuration ‣ Webhooks
In the Webhooks section, click on Create button
Enter user friendly name
of the webhook, Select the model
for which you want to receive notifications, Select the language
and payload format
in which you want to receive notifications, Select the event
you want to listen for from the drop-down box, Select the fields
if you want to receive notifications for those specfic fields only, Give a condition
if you want to recieve notifications only when it specified and enter the Callback URL
(http:// or https://) where you want to receive notifications.
Click on Save button.
After you have created at least one webhook, Odoo lets you test your webhooks to verify that the endpoint is receiving notifications.
In the list of order notifications you will see your webhook. You will also see a “send test notification” link. This “send test notification” link allows you to send an example order to the URL you provided.
For example, if you wanted to pass custom headers with webhook requests, then you can click on Create new webhook and go to the headers tab where you can configure your custom headers.
If you want to capture the contents of a webhook to examine them, the easiest way is to set up a new subscription with a service like LocalTunnel, RequestBin or PostCatcher (described in section) which will capture the result and let you view it in a browser.