Repository
OCA/tier-validation · module folder · Try on Runboat
Module version
1.1.0
Category
Tools
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/tier-validation
Last tracking update
2026-08-07 09:06:34
Authors
Odoo Community Association (OCA), Creu Blanca
Maintainers
Odoo Community Association (OCA), Creu Blanca
Committers
Maksym Yankin, Weblate, OCA-git-bot, oca-ci, bosd
Odoo dependencies
OCA/tier-validation:
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None
Description
This module includes the ability to define the tier definition domain
and the tier reviewers using python code.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
tier_definition_view_form tier.definition.form tier.definition form Inherits base_tier_validation.tier_definition_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (4)
  • definition_type Selection
    selection_add=[('formula', 'Formula'), ('domain_formula', 'Domain & Formula')]
  • python_code Text
    default='# Available locals:\n# - rec: current record\nTrue' help='Write Python code that defines when this tier confirmation will be needed. The result of executing the expresion must be a boolean.' string='Tier Definition Expression'
  • review_type Selection
    selection_add=[('expression', 'Python Expression')]
  • reviewer_expression Text
    default='# Available locals:\n# - rec: current record\n# - Expects a recordset of res.users\nrec.env.user' help='Write Python code that defines the reviewer. The result of executing the expression must be a res.users recordset.' string='Review Expression'
Public methods (1)
  • onchange_review_type(self)
    @api.onchange('review_type')

New fields (1)
  • python_reviewer_ids Many2many → res.users
    column1='tier_review_id' column2='user_id' comodel_name='res.users' compute='_compute_python_reviewer_ids' relation='tier_review_python_reviewer_rel' store=True string='Reviewers from Python expression'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • evaluate_formula_tier(self, tier)
  • evaluate_tier(self, tier)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…