Base Tier Validation Forward
base_tier_validation_forward · OCA/tier-validation
purchase_tier_validation_forward (14.0)OCA/server-ux 12.0–18.0 → OCA/tier-validation 19.0
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by5/250 modules depend on it
-
Maturity25/25In 8 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `update tier_review a set sequence = (select floor(sequence) from tier_review b where a.id = b.id);` - re-check the table/column names still match after upgrading. (2 occurrences in this file) migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module add an advance option to base_tier_validation.
- To allow "Forward" the tier to different user.
Sample use case:
A user is appointed to approve a tire, but he/she don't want to make decision for some reason, and want to pass/forward the decision to another person.
User can then click on Forward instead of Approve. A new tier with minor sequence will be created on the reviewer table, and new user will be able to make approval decision.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
tier_definition_view_form |
tier.definition.form | tier.definition | form | Inherits base_tier_validation.tier_definition_view_form |
tier_validation_label_forward |
tier_validation_label_forward | ir.ui.view | qweb | Inherits base_tier_validation.tier_validation_label |
view_forward_wizard |
Forward Wizard | tier.validation.forward.wizard | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
No new fields.
Public methods (1)-
add_comment(self)
-
has_forwardBooleandefault=Falsehelp="Allow option to 'Forward' to different person."string='Allow Forward'
No public methods.
-
approve_sequenceBooleancompute='_compute_definition_data'store=True -
has_commentBooleancompute='_compute_definition_data'store=True -
nameCharcompute='_compute_definition_data'related=Falsestore=Truetranslate=True -
review_typeSelectioncompute='_compute_definition_data'store=True -
reviewer_group_idMany2one → res.groupscomodel_name='res.groups'compute='_compute_definition_data'store=True -
reviewer_idMany2one → res.userscomodel_name='res.users'compute='_compute_definition_data'store=True -
sequenceInteger -
statusSelectionselection_add=[('forwarded', 'Forwarded')]
No public methods.
-
can_forwardBooleancompute='_compute_can_forward'
-
forward_tier(self)
-
approve_sequenceBooleandefault=Truestring='Approve by sequence' -
forward_descriptionChar -
forward_reviewer_idMany2one → res.userscomodel_name='res.users'required=Truestring='Next Reviewer' -
has_commentBooleandefault=Truestring='Allow Comment' -
res_idInteger -
res_modelChar
-
add_forward(self)Add extra step, with specific reviewer
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…