Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 6 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 9 Odoo series since 11.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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

Odoo dependencies
OCA/tier-validation:
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…

Loading…