Repository
OCA/manufacture · module folder · Try on Runboat
Module version
1.0.1
Category
Manufacturing
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/manufacture
Last tracking update
2026-08-07 08:42:53
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Thierry Ducrest, Weblate, OCA-git-bot, oca-ci, chaule97
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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.

Code Analysis

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…