TIP: You can type at any time to perform a new search.
Sale - Product variants
sale_variant_configurator · OCA/product-variant
🛠 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
Found by automated static analysis: patterns worth a look before/after upgrading this module to a newer Odoo version.
- Repository
- OCA/product-variant · module folder · Try on Runboat
- Module version
- Category
- Sales Management
- Folder size
- 0.12 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/product-variant
- Last tracking update
- 2026-08-20 17:29:49
- Authors
- Odoo Community Association (OCA), AvanzOSC, Tecnativa, OdooMRP team
- Maintainers
- Odoo Community Association (OCA), AvanzOSC, Tecnativa, OdooMRP team
- Committers
- OCA-git-bot, oca-ci, Andrii9090-tecnativa
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- 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.
Code Analysis ⓘ
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)
New fields (0)
No new fields.
Public methods (1)-
action_confirm(self)Create possible product variants not yet created.
New fields (1)
-
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…
- Status
- Open migration PR — not merged yet for this version
- CI status
- checks failing
- Open since
- 584 days ago
- Last activity
- 32 days ago
- Repository
- OCA/product-variant
- Pull request
- [17.0][MIG] sale_variant_configurator: Migration to 17.0 (#381)