Base Tier Validation Defination Server Action
This module includes the ability to define the tier definition server action.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Adds a new "Server Action" option to tier validation definitions, so a tier can be triggered by running a custom server action instead of only by a domain condition.
This module extends the tier validation feature. On the tier definition form (the screen where you configure approval tiers), a new choice "Server Action" is added to the definition type field. When you pick it, a new field appears where you select a server action.
- The server action list is filtered to show only server actions that belong to the same model as the tier definition, so you cannot pick an action for the wrong model.
- When Odoo evaluates whether a tier applies to a record, and the tier is of type "Server Action", it runs the selected server action on that record instead of checking a domain.
- If the server action fails, the user sees an error message explaining that the tier validation condition could not be evaluated.
The module touches the tier.definition model (adds the new type and the server action field) and the tier.validation mixin (adds the evaluation logic). It does not add new menus; the new option appears inside the existing tier definition form from the base tier validation module.
Depends on
Models and fields (2)
- tier.definition · extends an existing modeldefinition_type, definition_server_action_id (Server Action)
- tier.validation · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 16.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: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/server-ux.
terminal Installation and usage
OCA documentation · Odoo 16.0Configuration
Source · Odoo 16.0On each Tier Definition
- Choose the Server Action option in the Definition.
- In the server action you need to assign a boolean value to an action variable, the value of that variable will determine if validation is needed or not on object
- It will use same model as selected in defination to evaluate server action
No verified information in OCA: Installation, Usage.
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.