mrp_package_propagation
Allow manufacturing to propagate a package from a chosen component to the finished product when producing exactly the BoM quantity.
Key Features
- mrp.bom: Adds a package propagation setting restricted to normal BoMs and requires at least one component to be marked for propagation.
- mrp.bom.line: Adds a propagate package flag visible only when propagation is enabled and enforces that exactly one component with a one-unit consumption can propagate its package.
- mrp.production: Tracks when package propagation applies, copying the propagation flag from BoM lines onto raw material moves during confirmation.
- mrp.production: Validates that package-propagated manufacturing orders must produce exactly the BoM quantity in the same UoM.
- mrp.production: Computes the package to propagate from raw move lines or ancestor moves and assigns it to finished move lines before posting inventory.
- stock.move: Stores a readonly propagate package marker on component moves for package propagation logic.
- ui: Extends BoM and production forms to show propagation toggles and the propagated package field when relevant.