Sale - Product variants
sale_variant_configurator · OCA/product-variant
sale_product_variants, sale_stock_product_variants via sale_stock_variant_configurator (9.0) · sale_stock_variant_configurator (11.0)-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 7 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE sale_order_line AS line SET product_tmpl_id = product_product.product_tmpl_id FROM product_product WHERE line.product_id = product_product.id;` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module allows you to create the product variant when a sale order is confirmed. It adds to the sale line a product configurator, so that selecting a product and its attributes can serve for creating/selecting the product variant.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_order_form |
sale.order | form | Inherits sale.view_order_form | |
view_order_line_tree |
sale.order.line | tree | Inherits sale.view_order_line_tree | |
view_sales_order_line_filter |
sale.order.line | Inherits sale.view_sales_order_line_filter |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
No new fields.
Public methods (1)-
action_confirm(self)Create possible product variants not yet created.
-
product_tmpl_idMany2onereadonly=Falserelated=Falsestore=Truestring='Product Template (no related)'
-
create(self, vals_list)@api.model_create_multiCreate product if not exist when the sales order is already confirmed and a line is added.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…