sell_only_by_packaging
This module enforces that products configured to be sold only by packaging must be sold using valid packaging configurations in sale orders.
Key Features
- product.template: Adds a checkbox to restrict sales of products to only by packaging.
- product.template: Computes the minimum sellable quantity based on available packagings.
- product.template: Validates that products marked for sell only by packaging are saleable and have sellable packagings.
- product.packaging: Adds a checkbox to force sale quantities to multiples of the packaging quantity.
- product.product: Computes the minimum sellable quantity for product variants.
- product.product: Converts quantities to packaging multiples when the force option is enabled.
- sale.order.line: Constrains sale order lines to require packaging for products sold only by packaging.
- sale.order.line: Forces quantity to the nearest packaging multiple on quantity changes.
- product.packaging.level: Prevents disabling sale on packaging levels used by sell-only-by-packaging products.