Base Tier Validation Formula
base_tier_validation_formula · OCA/tier-validation
OCA/server-ux 11.0–18.0 → OCA/tier-validation 19.0
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 6 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 9 Odoo series since 11.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis
0 migration notes
3 models
1 view
0 HTTP endpoints
Description
This module includes the ability to define the tier definition domain and the tier reviewers using python code.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_typeSelectionselection_add=[('formula', 'Formula'), ('domain_formula', 'Domain & Formula')] -
python_codeTextdefault='# 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_typeSelectionselection_add=[('expression', 'Python Expression')] -
reviewer_expressionTextdefault='# 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'
-
onchange_review_type(self)@api.onchange('review_type')
New fields (1)
-
python_reviewer_idsMany2many → res.userscolumn1='tier_review_id'column2='user_id'comodel_name='res.users'compute='_compute_python_reviewer_ids'relation='tier_review_python_reviewer_rel'store=Truestring='Reviewers from Python expression'
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…
Loading…