Repository
OCA/tier-validation · module folder · Try on Runboat
Module version
1.0.0
Category
Tools
Folder size
0.14 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), Ecosoft
Maintainers
Odoo Community Association (OCA), Ecosoft
Committers
Maksym Yankin, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
OCA/tier-validation:
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None
Description
This module provide a new operation to correct the information in
tier.review for any document under tier validation.

For example, a document started validation, a tier review is assigned to
Mr. Smith.

However, since Mr. Smith has urgent business oversea for a few days, all
document need to get approved by Mr. John as person in charge.

This module allow user with Tier Review Correction role to change the
reviewer to Mr. John.

Note: Currently, only correction type available is to reassign the
reviewer, but it is possible to add in the future.

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
tier_correction_view_form tier.correction.form tier.correction form New
tier_correction_view_search tier.correction.search tier.correction search New
tier_correction_view_tree tier.correction.list tier.correction list New
tier_validation_label_forward tier_validation_label_forward ir.ui.view qweb Inherits base_tier_validation.tier_validation_label
view_affected_tier_reviews_form affected.tier.reviews.form affected.tier.reviews form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (1)
  • review_ids Many2many → tier.review
    comodel_name='tier.review' default=<expr>
Public methods (0)

No public methods.

New fields (14)
  • correction_type Selection
    default='reviewer' required=True selection=[('reviewer', 'Reassign Reviewer(s)')]
  • date_actual_correct Datetime
    copy=False string='Actual Correction Date'
  • date_actual_revert Datetime
    copy=False string='Actual Revert Date'
  • date_schedule_correct Datetime
    copy=False string='Scheduled Correction Date'
  • date_schedule_revert Datetime
    copy=False string='Scheduled Revert Date'
  • item_ids One2many → tier.correction.item
    comodel_name='tier.correction.item' inverse_name='correction_id'
  • model Char
    index=True related='model_id.model' store=True
  • model_id Many2one → ir.model
    comodel_name='ir.model' domain=<expr> string='On Model'
  • name Char
    required=True string='Description'
  • new_reviewer_ids Many2many → res.users
    comodel_name='res.users' help='Reassign these reviewers to the tier reviews of the found document' relation='tier_correction_new_reviewer_rel' string='Reassign Reviewer(s)'
  • old_reviewer_ids Many2many → res.users
    comodel_name='res.users' help='Find documents with tier reviews matching some reviewers' relation='tier_correction_old_reviewer_rel' string='Original Reviewer(s)'
  • reference Char
    compute='_compute_reference' store=True string='Affected Documents'
  • search_name Char
    string='Name Search'
  • state Selection
    copy=False default='draft' index=True selection=[('draft', 'Draft'), ('prepare', 'Preparing'), ('done', 'Corrected'), ('cancel', 'Cancelled'), ('revert', 'Reverted')] string='Status' tracking=1
Public methods (9)
  • action_cancel(self)
  • action_done(self)
  • action_draft(self)
  • action_prepare(self)
  • action_revert(self)
  • do_correct(self)
  • do_revert(self)
  • search_document(self)
  • view_scheduled_action(self)

New fields (7)
  • correction_id Many2one → tier.correction
    comodel_name='tier.correction' index=True
  • new_reviewer_ids Many2many → res.users
    comodel_name='res.users' help='These reviewers will overwrite the existing reviewer_ids in tier.review' relation='tier_correction_item_new_reviewer_rel' string='New Reviewers'
  • reference Char
    readonly=True
  • res_id Integer
    readonly=True
  • res_model Char
    readonly=True
  • resource_ref Reference
    readonly=True selection=<expr> string='Resource'
  • review_ids Many2many → tier.review
    comodel_name='tier.review' help='Tier reivews that will be affected by this correction.' string='Affected Tier Reviews'
Public methods (2)
  • correct(self)
  • revert(self)

New fields (0)

No new fields.

Public methods (1)
  • view_tier_correction(self)

Loading…

Loading…

Loading…