odoo/tutorials#743
Created by Aryan Donga (ardo)
Blocked
- Merge method
- Review
-
CI
- ci/style: (runtime 6s)
- ci/tutorial: (runtime 124s)
- label
- odoo-dev:18.0-mrp-modular-types-ardo
- head
- e388decb692b91a8c0226d85c221b52d59c7bc4d
odoo/tutorials | |
---|---|
18.0 | #743 missing r+ |
master |
[ADD] modular_types: introduce modular types for configurable manufacturing
This module introduces support for modular product configurations in the manufacturing and sales flow. The core functionality includes modeling modular types, allowing their selection on products and SO lines, and dynamically generating manufacturing orders and stock moves accordingly.
Key features:
-
Modular Type Model: Adds a new model
product.modular.type
to define modular configurations. This model is linked to products, BoMs, and manufacturing orders to drive conditional behavior based on the selected modular types. -
Readonly BoM on MO: The BoM field in manufacturing orders is made readonly when a modular type is set, to ensure consistency with modular configurations and avoid accidental changes that might desynchronize the manufacturing process.
-
UI & Views: All relevant views have been extended to expose modular type fields, including product forms, BoMs, MOs, and SOs. The views also include proper domain filters and conditional visibility for a clean user experience.
-
Wizard Support: A wizard has been added to allow sales users to edit modular type values per sales order line. These values are persisted using a dedicated model to enable downstream usage.
-
Stock Move Quantity Calculation: The quantity of components in stock moves is now computed dynamically based on modular type values selected during the sales process. This ensures that material usage matches the product's configured modular structure.
This feature enhances manufacturing flexibility and traceability in environments where modular product design and configurability are business-critical.