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. Productivity
  3. Any-Model Approvals v 20.0
  4. Sales Conditions FAQ

Any-Model Approvals

by Awins
Odoo

$ 17.53

v 20.0 Third Party 1
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 16.0 17.0 18.0 19.0 20.0
You bought this module and need support? Click here!
Versions 16.0 17.0 18.0 19.0 20.0
  • Description
  • Manifest
  • License
Apps / Awins / record_approval_routes

Any-Model Approvals

Pick any model with a chatter, the button to hold back and the approvers. Until the request is approved, the button shows a message instead of running.

Install›Configure›Use
/odoo/action-record_approval_routes.approval_route_action/1 · signed in as admin
Any-Model Approvals in the Odoo backend
Odoo17.0, 18.0, 19.0, 20.0
EditionsCommunity, Enterprise
Works withDiscuss
LicenceOPL-1, 16 EUR
Tests21 automated, run on every version
Modulerecord_approval_routes

The situation

Approval modules for Odoo usually come one per document: one for purchase orders, another for invoices, another for sales. A company that wants a manager to sign off on purchase orders above 5,000, vendor bills before posting and discounted sales orders ends up installing three modules, each with its own screens. Anything else, such as a stock transfer or a project, has no approval at all, and the sign-off happens by chat.

With Any-Model Approvals you create a route for each case in one place. A route names the model, the button method to guard (button_confirm, action_confirm, action_post), an optional condition, an amount field and the steps. A guarded button raises a message until the record has an approved request. Approvers get a to-do on the record, and every step is logged in its chatter.

What it adds

Guarded Method
Guard any button
Enter the method name of the button, for example button_confirm on purchase orders. The route is refused if the method does not exist on the model, is private or is an ORM method such as write. Until the record is approved, pressing the button shows the reason instead.
Without it: Standard Odoo only has the fixed one-step confirmation of purchase orders.
Applies When
Condition on the record
Use the domain editor to limit a route, for example vendor bills only (Type is Vendor Bill). When two routes match the same button, the lowest Sequence wins. A route can also be tied to one company.
Amount Field
Levels by amount
Give a field path such as amount_total, or order_id.amount_total on a line model. A step with a Minimum Amount of 5,000 is added only when the record reaches it. If the amount grows after the approval, the approval no longer counts.
Approvers
Users or a group, any or all
A step names users or a group. Approval Needed From is Any one approver or All approvers. The approvers of a group are listed when the request is made, so later group changes do not alter a running request.
Request approval
Action menu on every routed model
For each model with an active route, the Action menu of its list and form gets Request approval, Approve request and Reject request. The actions appear when the first route is saved and disappear with the last one.
My Approvals
A queue for each approver
Approvals > My Approvals lists the steps waiting for the signed-in user, with the record, route, amount and requester, and Open, Approve and Reject buttons. The approver also gets a to-do on the record, removed once the step is decided.
Reject
Rejection needs a reason
A rejection requires a comment, closes the request and withdraws the open steps. The reason is posted to the chatter of the record. After the fix, Request approval starts a new request and the rejected one stays as history.
Run After Approval
Run the button for you
Tick Run After Approval and the guarded method runs as the person who asked, right after the last approval. If it fails, the approval stays valid and a note in the chatter says why.

Getting started

Install

Open Apps, clear the Apps filter, search for Any-Model Approvals and click Activate. It needs only Discuss (mail). Models are available as soon as they have a chatter, so Sales, Purchase, Accounting or your own models all work without extra modules.

Apps › record_approval_routes › Activate
Configure

Create a route per case. Choose the model, type the button method, add the condition and the amount field if you need levels, then add the steps in order. Only Administration users see Configuration. Requests start from the Action menu of the record.

Approvals › Configuration › Routes Settings for Any-Model Approvals
Use

A user opens the record and presses the button as usual. If a route applies, the message tells them to use Action > Request approval. The approvers see the step in My Approvals or as a to-do on the record and press Approve or Reject. Approvals > All Requests shows every request with its steps.

A draft purchase order above the limit: Confirm Order is refused with the reason, and Request approval is in the Action menu.
A draft purchase order above the limit: Confirm Order is refused with the reason, and Request approval is in the Action menu.
My Approvals: the steps waiting for the signed-in approver, with Open, Approve and Reject on each row.
My Approvals: the steps waiting for the signed-in approver, with Open, Approve and Reject on each row.

Fine print

What happens when the button is pressed by code, a cron job or a website payment?
The guard sits on the method itself, so every caller is checked: the user interface, other modules and scheduled actions. A caller that cannot wait for an approval gets the same message.
Can a manager skip the approval?
Not through the button. Running the method from a script with the context key approval_skip_guard set to True bypasses the guard; the approve action uses this to run the method after the last step.
What if I uninstall the module?
The wrappers live in the registry only. After the module is removed and the server restarts, the original methods run again and nothing is left on the models.
Where can I run it?
On Odoo.sh and on your own server, Community or Enterprise, versions 17.0 to 20.0. Odoo Online doesn't accept third-party modules.
What doesn't it do?
It guards one button method per route and does not watch field changes: a record that is edited after approval keeps its approval, except when the amount field grows. Rejection by any approver ends the request, also in an All approvers step. Approvers are not replaced when they leave or go on holiday. There is no e-mail template; approvers are notified by to-do and chatter. Routes cannot guard standard ORM methods such as write or unlink.
Can you adapt it for us?
Yes. Email odoo.expert.111@gmail.com with your Odoo version and what you'd like changed.

Log

20.0.1.0.0 · Oct 2026
First release, published for Odoo 17.0 to 20.0.

Can it guard the button we use?

Send us the model and the button name and we will tell you how to set the route.

Email odoo.expert.111@gmail.com
QR code: email Awins about this module

Also by Awins

Insert Line Anywhere Insert Line Anywhere sale_line_insert_anywhere
Stock by Location Stock by Location location_stock_matrix
Login Page Styler Login Page Styler login_page_styler
Awins builds small Odoo modules that do one job. record_approval_routes · 20.0.1.0.0
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 859
Technical Name record_approval_routes
LicenseOPL-1
Odoo 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 the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules 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 Odoo 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