Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 4 Odoo series since 14.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.16 MB
Module directory on disk
Code analysis 0 migration notes 4 models 5 views 0 HTTP endpoints

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.

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 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'
  • document_domain Char
    default='[]' help='Only include the documents matching this filter. Documents without a waiting or pending review are never included.' string='Documents'
  • 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'
  • 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…

Loading…