Skip to content

[ADD] modular_types: introduce modular types for configurable manufacturing #743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: 18.0
Choose a base branch
from

Conversation

ardo-odoo
Copy link

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.

- Add the `product.modular.type` model and establish relations to products,
BoMs, and manufacturing orders.

- Make the BoM field on MOs readonly when a modular  is set to prevent
inconsistent configurations.

- Extend relevant views to include modular type fields for better user
interaction and visibility across product and manufacturing workflows.
- Introduce a wizard interface to configure modular type values per SO line,
along with models to store these values for persistence.

- Update stock move logic to adjust quantities based on the configured modular
type values, ensuring accurate material flow during manufacturing.

- Add tests to cover key edge cases and ensure the modular type logic behaves
correctly across SO, MO, and stock move flows.
@robodoo
Copy link

robodoo commented Apr 25, 2025

Pull request status dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants