Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries ⟶
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    • Affiliate Program
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Automation
  3. MuK Webhooks v 20.0
  4. Sales Conditions FAQ

MuK Webhooks

by MuK IT http://www.mukit.at
Odoo

$ 197.23

In-App Purchases
v 20.0 Third Party 99
Live Preview
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 11.0 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0 20.0
You bought this module and need support? Click here!
Versions 11.0 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0 20.0
  • Description
  • Manifest
  • Documentation
  • License

Send your Odoo records to any system, over HTTP.

Turn a server action into a webhook: pick the method, the URL and the sign-in, shape the body in Python and act on the answer. Fire it from a button, an automation rule or a schedule, and find every request in the log.

Runs on
✓  Community ✓  Enterprise
Hosting
Odoo.sh · on-premise
Demo
See it in action
Any endpoint, any sign-in

GET, POST, PUT, DELETE or a verb of your own, signed in with Basic, Digest, a Bearer token or OAuth2.

Shaped in Python

Adapt the URL, the headers and the body, then act on the response or on the error.

Sent, retried, logged

Right away, after the commit or from a queue that retries, and every exchange kept with its credentials masked.

Settings  ›  Webhooks  ›  Actions  ›  Push Customer to Warehouse
A webhook form with the URL, method POST, a 15 second timeout, three retries, Post Commit sending and the Adapt Payload tab open on ten lines of Python that build the customer payload
One webhook: where it goes, how it signs in, when it is sent, and the body it builds from the record.
What it covers

A webhook is a server action

So it runs wherever a server action runs, and it is set up in a form, not in a module. Odoo's own webhook posts the fields you pick, once, with no sign-in; this one lets you choose every part of the call.

The request you need

Any HTTP method, a timeout, SSL verification, header lines, and one request per record or one for all of them.

Sign-in you set once

Basic, Digest, a Bearer token, or OAuth2 with the password or client-credentials grant, shared by every webhook that uses it.

Python at five points

Adapt the URL, the headers and the payload, JSON or XML, then process the response and handle the error.

Now, after commit, or queued

Send in the transaction, once it has committed, or from a queue that retries with a growing pause between attempts.

Every request on file

The request and the response as they were sent, with a traffic graph, a pivot per webhook and a Resend button.

No calls into your network

A URL that resolves to a private or internal address is refused, OAuth2 token URLs included, until the server config allows it.

For developers

Three hooks on one webhook

Each hook is a few lines of Python with record, env, json and etree at hand, and the Help tab of the form lists the rest. This one builds its URL from the record, sends a body of its own and writes the answer back. Assign content instead of payload to add to the default body rather than replace it.

Python  ·  three hooks on one webhook
# 01  Adapt URL: build the address from the record
>>> request_url = '%s/%s' % (action_url, record.ref)
POST https://warehouse.example.com/api/v2/customers/C-00010

# 02  Adapt payload: send a body of your own
>>> payload = {'event': 'customer.updated', 'name': record.name, 'country': record.country_id.code}
{"event": "customer.updated", "name": "Acme Corporation", "country": "US"}

# 03  Process response: write the answer back to the record
>>> record.write({'comment': 'Warehouse: %s' % response.json()['warehouse_ref']})
201 Created  →  Acme Corporation, Warehouse: WH-2026-0412
Request log

Every exchange, on the record

Each request is stored with its URL, headers and payload, the request and the response exactly as they went over the wire, the result of your code, and the exception with its traceback when one was raised. Authorization, cookie and API-key headers are masked before anything is saved.

A failed request is sent again from its log entry. Traffic charts the requests per day, Hooks breaks them down by webhook, week and state, and old entries are cleaned up after the number of days you set.

Settings  ›  Webhooks  ›  Analytics  ›  Requests
A sent request for Push Customer to Warehouse with the Request tab open: the POST line, the headers with Authorization masked, and the JSON body with the customer's city, country, email, name and reference
The request as it was sent: the headers with the bearer token masked, then the body the hook built.
Settings  ›  Webhooks  ›  Authentication
An OAuth2 authentication with the client credentials grant, a token URL, the client ID and secret, and two token parameters, scope and audience
An OAuth2 sign-in that asks the provider for a scope and an audience with its token.
Authentication

Sign in once, use it everywhere

An authentication is a record of its own: Basic, Digest or a Bearer token, or OAuth2 with the password or the client-credentials grant, a token URL and whatever extra parameters the provider wants in the token request.

Any number of webhooks point at it, and its Webhooks button lists them. Rotate a secret in one place and every one of them signs in with the new one.

Preview

Try it before it goes live

Preview runs a webhook on a record you pick and shows the headers, the payload and the request it would send, without sending anything.

Switch on Send Request to call the endpoint and read its response and your code's result. Keep Reset Changes on and whatever that code wrote to the database is rolled back when the preview ends.

Push Customer to Warehouse  ›  Preview
The Preview dialog for Push Customer to Warehouse on Azure Interior, with Send Request and Reset Changes on and the Response tab showing a 201 answer with its headers, the cookie masked, and a JSON body
Sent for real and answered with a 201, with the database left as it was.
Settings  ›  Webhooks  ›  Automation
An automation rule on Contact, triggered on create and edit for companies when the city, country, email or phone changes, with Push Customer to Warehouse as its action
A company's address or contact details change, and the warehouse hears about it.
Triggers

From a button, a rule or a clock

Put a webhook in the Actions menu of a record, run it from an automation rule when records are created, edited or deleted, or on a schedule. Actions, Automation and Schedules each have a menu under Webhooks that opens the webhook form directly.

Imports stay quiet

The import dialog gains a Run webhooks during import checkbox, off by default, so loading a thousand rows does not send a thousand calls. A test import never sends.

Where it stops

Built to be extended

What a webhook does not do out of the box, a module of yours can add — on the same log, the same hooks and the same preview.

A send type of your own

Add a value to Send Type and a _webhook_send_request_on_<type> method on ir.actions.server, and the request is yours to deliver.

A sign-in of your own

Extend _authentication_selection and _prepare_session to hand back a session that signs the way your target expects.

It sends, it does not listen

Webhooks call out when something happens in Odoo. For other systems to call into Odoo, pair it with MuK REST API.

PAID MODULE

Help and support

What is covered after you buy, and where to write.

Included support

30 days of complimentary support for issues with the module, from the date of purchase. Data recovery, migration and training are not covered.

Where to write

support@mukit.at for a technical issue — with your Odoo version and the request you sent. sale@mukit.at for anything before you buy.

Licence

MuK Proprietary Licence v1.0 — one database per licence. You may build modules on top of it; you may not redistribute it.

Want more?

MuK IT — Austrian Odoo partner, Vienna
Development

Modules written for your process, on your Odoo version.

Integration

Odoo joined up with the systems you already run.

Infrastructure

Hosting, deployment and upgrades you do not have to watch.

Training

Your team taught the parts of Odoo they actually use.

Support

An agreement, so an answer does not depend on who is free.

The rest of the integration stack

MuK REST API
MuK REST API

The other direction: your database as a documented API.

MuK OpenID Connect
MuK OpenID Connect

Single sign-on with Odoo as the identity provider.

MuK MCP Server
MuK MCP Server

Your database as tools for AI agents.

MuK Import
MuK Import

Large imports run in the background.

Documentation

The full text is on the Documentation tab, and in doc/ inside the download.
Requirements

Odoo.sh or on-premise, Community or Enterprise. OAuth2 needs the oauthlib and requests-oauthlib Python packages; without them, Basic, Digest and Bearer tokens still work.

Configuration

Settings  ›  Webhooks holds the webhooks, the authentications and the log. The server config file allows private targets, turns SSL verification off everywhere and sets the queue's batch size and the log's retention.

Installation

Depends on base_automation, base_import and muk_web_utils. Install it from the Apps menu like any other module.

Usage

Create a webhook as an action, an automation or a schedule, try it with Preview, then follow its requests from the Analytics button.

Upgrade

Webhooks, authentications and the request log are records, and an upgrade keeps them. Coming from 19, a webhook that processed its response gets Handle Error switched on, so its error code keeps running.

Credits

MuK IT GmbH, Vienna. Author and maintainer.

Have a system that should hear from Odoo?

Tell us what has to be sent and when, and we will tell you whether it is a webhook, an automation or a module. MuK IT — Austrian Odoo partner, Vienna.

sale@mukit.at
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Community Apps Dependencies Show
MuK Web Utils
Lines of code 2796
Technical Name muk_webhooks
LicenseSee License tab
Websitehttp://www.mukit.at

MuK Webhooks

Turns Odoo server actions into HTTP webhooks. Each webhook has its own method, URL, headers, timeout and authentication (Basic, Digest, Bearer token or OAuth2), and Python code can adapt the URL, the headers and the payload and process the response or the error. Webhooks run from actions, automation rules and scheduled actions, are sent immediately, after the commit or from a queue with retries, and every request is logged with its credentials masked.

Installation

To install this module, you need to:

Download the module and add it to your Odoo addons folder. Afterward, log on to your Odoo server and go to the Apps menu. Trigger the debug mode and update the list by clicking on the "Update Apps List" link. Now install the module by clicking on the install button.

Upgrade

To upgrade this module, you need to:

Download the module and add it to your Odoo addons folder. Restart the server and log on to your Odoo server. Select the Apps menu and upgrade the module by clicking on the upgrade button.

Configuration

Everything lives under Settings -> Webhooks:

  1. Configuration -> Authentication holds the reusable sign-ins: Basic, Digest, Token (sent as a Bearer token) and OAuth2 with the password or the client credentials grant. OAuth2 needs the oauthlib and requests-oauthlib Python packages (requirements.txt); without them the option is not offered.
  2. Hooks -> Actions, Hooks -> Automation and Hooks -> Schedules create webhooks as server actions, automation rules or scheduled actions.

A webhook is configured in its form: URL, method (GET, POST, PUT, DELETE or a custom verb), timeout, Verify SSL, run type (one request per record or one for all), send type (immediately, post commit or cron job), maximum retries and error handling for the cron queue, header lines, the fields to include and the authentication. The toggles Adapt URL, Adapt Headers, Adapt Payload, Process Response and Handle Error each open a tab for Python code. The Help tab lists the variables every code block receives and what it may assign:

  • Adapt URL: action_url holds the configured URL; assign request_url. authentication holds the configured credentials; assign another authentication record, or an empty one, to send the request with other credentials. The request log shows the credentials each request used.
  • Adapt Headers: change headers or assign a new dictionary.
  • Adapt Payload: assign content to extend the default payload or payload to replace it (a dictionary, a list or a string such as XML built with etree).
  • Process Response and Handle Error: request, response and, for errors, exception; assign action to return an action to the user.

The server configuration file accepts these options:

  • webhook_allow_private: allow URLs that resolve to private or internal addresses, which are refused by default.
  • webhook_verify: set to False to skip SSL verification for every webhook.
  • webhook_request_batch_size: requests sent per run of the queue (default 100), also the system parameter muk_webhooks.webhook_request_batch_size.
  • webhook_request_autovacuum: days a sent or failed request is kept in the log (default 90), also the system parameter muk_webhooks.webhook_request_autovacuum.

Usage

A webhook fires where its server action does: from the Actions menu of a record, from an automation rule or on a schedule. The Preview button runs it on a chosen record and shows the headers, payload, request and response; Send Request calls the endpoint for real and Reset Changes rolls back what the code wrote.

Every request is logged under Analytics -> Requests with the rendered request and response, Authorization, cookie and API-key headers masked. Traffic and Hooks chart the log, and a failed request can be sent again from its entry.

The import dialog has a Run webhooks during import checkbox. It is off by default, so an import does not send webhooks, and a test import never sends.

Credits

Contributors

  • Mathias Markl <mathias.markl@mukit.at>

Author & Maintainer

This module is maintained by the MuK IT GmbH.

MuK IT is an Austrian company specialized in customizing and extending Odoo. We develop custom solutions for your individual needs to help you focus on your strength and expertise to grow your business.

If you want to get in touch please contact us via mail (sale@mukit.at) or visit our website (https://mukit.at).

MuK Proprietary License v1.0

This software and associated files (the "Software") may only be used
(executed, modified, executed after modifications) if you have
purchased a valid license from MuK IT GmbH.

The above permissions are granted for a single database per purchased
license. Furthermore, with a valid license it is permitted to use the
software on other databases as long as the usage is limited to a testing
or development environment.

You may develop modules based on the Software or that use the Software
as a library (typically by depending on it, importing it and using its
resources), but without copying any source code or material from the
Software. You may distribute those modules under the license of your
choice, provided that this license is compatible with the terms of the
MuK Proprietary License (For example: LGPL, MIT, or proprietary licenses
similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of
the Software or modified copies of the Software.

The above copyright notice and this permission notice must be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

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 or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with