product_contract_variable_quantity
Enables contract products to define and propagate variable quantity settings across sales and contract documents.
Key Features
- product.template: Adds editable quantity type and formula fields for contract products and clears them when the product is not flagged as a contract.
- sale.order.line.contract.mixin: Precomputes the contract quantity type and formula on order lines based on the selected product.
- sale.order.line: Carries the order line quantity configuration into the generated contract lines.
- contract.line: Copies the product's quantity type and formula when the contract line product changes.
- product.contract.configurator: Shows quantity type and formula fields during contract product configuration with appropriate requirements.
- sale.order: Displays the contract quantity type and formula alongside ordered quantities to make the settings visible during quotation.
- web: Keeps the selected quantity type and formula when opening the contract configurator from a sale order line.