product_set_sell_only_by_packaging
This module integrates the sell_only_by_packaging feature with product sets to ensure that products configured for sale only by packaging have appropriate packaging assigned in their set lines, providing warnings and automatic corrections.
Key Features
- product.set.line: Enforces that product set lines for products sold only by packaging must have a packaging selected, raising an error if not.
- product.set.line: Runs a scheduled cron job every 30 minutes to automatically assign valid packaging to lines with invalid or missing packaging.
- product.template: Displays a warning alert in the product form when sell-only-by-packaging products have associated set lines without packaging.
- product.template: Provides a button in the warning alert to quickly view all product set lines that require packaging assignment.
- product.set.line: Makes the packaging field required in the product set line tree view when the product is sold only by packaging.