sale_variant_configurator
Enable sales orders to configure products from templates and create necessary variants on the fly.
Key Features
- sale.order: Automatically creates missing product variants during confirmation for lines defined from a product template.
- sale.order.line: Inherits the product configurator so users can pick a product template, set attribute values, and get a dynamic domain for variant selection.
- sale.order.line: Stores an editable product_tmpl_id with SQL constraints that allow accountable lines to use either a template or a variant while keeping display-only lines clean.
- sale.order.line: When adding lines to already confirmed orders without a variant, it generates the needed variant and links it before saving.
- sale.order.line: Line descriptions append the variant's sales description in the customer's language when available.
- sale.order.line: Price calculation depends on selected attribute values so price extras are included correctly.
- sales reporting: Order line tree and search views expose product templates and a template group-by filter to analyze configured sales.
- post_init_hook: On installation backfills product_tmpl_id on existing sale order lines from their product variants.