This module enforces Unit of Measure (UoM) rounding validation on Bill of Materials (BoM) component quantities.
When a component is added to a BoM, the system validates that the quantity respects the rounding precision defined in the Unit of Measure. For example, if a UoM has a rounding of 1.0 (like "Units" or "Each"), the system will not allow quantities like 0.1 or 0.5.
This prevents data inconsistencies where users could enter quantities that don't make sense for the given UoM, such as 0.1 pieces when the UoM is configured for whole units only.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Prevents saving Bill of Materials component lines with quantities that do not match the rounding precision of the selected Unit of Measure, such as 0.5 pieces when the UoM only allows whole units.
This module adds a validation rule to Bill of Materials component lines in the Manufacturing app. When a user enters a component quantity on a BoM line, Odoo checks that the quantity is a valid multiple of the rounding precision configured on the selected Unit of Measure.
- If the quantity does not respect the UoM rounding, Odoo blocks the save and shows an error message naming the component, the quantity, the rounding precision and the Unit of Measure.
- The check runs automatically whenever the quantity or the Unit of Measure on a BoM line is changed.
- Lines without a Unit of Measure or without a quantity are ignored by the check.
This helps keep manufacturing data consistent: for example, if a Unit of Measure is configured to allow only whole units, users cannot enter 0.1 or 0.5 as a component quantity. The rule applies to the mrp.bom.line model, which is the model behind the Components tab of a Bill of Materials. No new menus, screens or reports are added; the change is only the extra validation when editing BoM component lines.
Depends on
Models and fields (1)
- mrp.bom.line · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/manufacture.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.