Skip to content
Health
62/100
fair
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 12 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity12/25
    In 2 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.07 MB
Module directory on disk
Code analysis 0 migration notes 6 models 2 views 0 HTTP endpoints

Description

Auto-validate manufacturing orders when the "Pick components" transfer operation is validated. This feature has to be enabled for each Bill of Material to produce.

Dependencies

Odoo dependencies
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 2

XML IDNameModelTypeStatus
mrp_bom_form_view mrp.bom.form.inherit mrp.bom form Inherits mrp.mrp_bom_form_view
mrp_production_form_view mrp.production.form.inherit mrp.production form Inherits mrp.mrp_production_form_view

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 6

New fields (0)

No new fields.

Public methods (1)
  • action_done(self)

New fields (1)
  • mo_auto_validation Boolean
    default=False help="Validate automatically the manufacturing order when the 'Pick Components' transfer is validated.\nThis behavior is available only if the warehouse is configured with 2 or 3 steps." string='Order Auto Validation'
Public methods (1)
  • onchange_type_auto_validation(self)
    @api.onchange('type')

New fields (1)
  • auto_validate Boolean
    compute='_compute_auto_validate' store=True
Public methods (4)
  • adapt_values_qty_for_auto_validation(self, values_list)
    @api.model
    Adapt create values according to qty with auto validated BOM If MOs are to be created with a BOM having auto validation, we must ensure the quantity of the MO is equal to the quantity of the BOM. However when MOs are created through procurements, the requested quantity is based on the procurement quantity, so we should either * increase the quantity to match the BOM if procurement value is lower * split the values to create one MO into multiple values to create multiple MOs matching the BOM quantity if procurement value is bigger
  • check_bom_auto_validate(self)
    @api.constrains('bom_id', 'auto_validate', 'product_qty')
  • create(self, values_list)
    @api.model_create_multi
  • handle_mark_done_result(self, res)

New fields (0)

No new fields.

Public methods (1)
  • action_backorder(self)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…