Base Tier Validation Formula
This module includes the ability to define the tier definition domain and the tier reviewers using python code.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Lets you write Python formulas to decide when a tier approval is required and who must approve it, instead of only using fixed domains or user lists.
This module extends the tier validation feature so that approval rules can be driven by small Python expressions instead of only by fixed conditions or reviewer lists.
On a tier definition you get two new options in the definition type: Formula and Domain & Formula. When one of these is chosen, a new field appears where you write a Python expression that must return True or False; the record being validated is available inside the expression as rec. With Domain & Formula, both the existing domain and the formula must be satisfied.
For the reviewer side, a new review type called Python Expression is added. You write an expression that must return a set of users, again with the current record available as rec. A default expression returning the current user is filled in automatically when you pick this review type.
When a review is created, the module computes the reviewers from that expression and stores them on the review, so they appear alongside the reviewers defined in the usual ways. If the expression fails or does not return users, an error message is shown.
The new fields are added to the existing tier definition form, and the domain field is hidden when it is not relevant.
Depends on
Required by other modules
Models and fields (3)
- tier.review · extends an existing modelpython_reviewer_ids (Reviewers from Python expression)
- tier.definition · extends an existing modelpython_code (Tier Definition Expression), review_type, definition_type, reviewer_expression (Review Expression)
- tier.validation · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 8 confirmed, 1 with no information of 9 versions.
Sources · Odoo 12.0
Confirmed on 2026-11-03 in branch 12.0 of OCA/server-ux.
terminal Installation and usage
OCA documentation · Odoo 19.0Usage
Source · Odoo 19.0To define the domain, * By python code choose the Formula option in the Definition field. * By both domain and python code, choose the Domain & Formula option in the Definition field.
To define the reviewers by python code choose Python Expression option in the Validated by field.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.