product_secondary_unit
Extend products to support secondary units of measure with conversion factors for quantity handling.
Key Features
- product.template: allows maintaining multiple secondary units with conversion factors and dependency types, exposed on the product form for users with unit-of-measure access
- product.product: synchronizes template secondary units to each variant and lets variants add their own units while keeping them linked to the template set
- product.secondary.unit: defines secondary unit records with code, name, secondary UoM, conversion factor, dependency type (dependent or independent), active flag, and optional variant specificity
- technical: provides a mixin that adds secondary unit fields and helper methods to compute and onchange primary quantities based on secondary units, honoring dependency type and unit-of-measure changes