TIP: You can type at any time to perform a new search.
Purchase - Product variants
purchase_variant_configurator · OCA/product-variant
- Repository
- OCA/product-variant · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Purchase Management
- Folder size
- 0.11 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/product-variant
- Last tracking update
- 2026-08-07 09:06:27
- Authors
- ACSONE SA/NV, Odoo Community Association (OCA), AvanzOSC, Tecnativa
- Maintainers
- ACSONE SA/NV, Odoo Community Association (OCA), AvanzOSC, Tecnativa
- Committers
- Weblate, 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 purchase order is confirmed. It adds to the purchase line a product configurator, so that selecting a product and its attributes can be created a new product variant.
Code Analysis ⓘ
Views touched (2)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
purchase_order_extended_form_view |
purchase.order.extended.form | purchase.order | form | Inherits purchase.purchase_order_form |
res_config_settings_view_form_purchase |
res.config.settings | form | Inherits purchase.res_config_settings_view_form_purchase |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (7)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (2)-
search(self, args, offset=0, limit=None, order=None)@api.modelHACK: With NewId, the linked product_tmpl_id won't be a proper interger that we can use in a search. As we need it to get the proper pricelists we'll be passing it by context. The propper solution would be to use `self.product_tmpl_id._origin.id` in `_prepare_sellers`: https://github.com/odoo/odoo/blob/13.0/addons/product/models/product.py#L588 -
sorted(self, key=None, reverse=False)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (2)-
button_confirm(self)Create possible product variants not yet created. -
copy(self, default=None)Change date_planned for lines without product after calling super
New fields (3)
-
product_idMany2onerequired=False -
product_id_is_requiredBooleancompute='_compute_product_id_is_required' -
product_uom_idMany2onecompute='_compute_product_uom_id'readonly=Falsestore=True
-
create(self, vals_list)@api.model_create_multiCreate variant before calling super when the purchase order is confirmed, as it creates associated stock moves.
New fields (1)
-
po_confirm_create_variantBooleandefault=Truehelp='Create product variants when confirming'string='Create variants on confirm'
No public methods.
New fields (1)
-
po_confirm_create_variantBooleanreadonly=Falserelated='company_id.po_confirm_create_variant'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 581 days ago
- Last activity
- 100 days ago
- Repository
- OCA/product-variant
- Pull request
- [18.0][MIG] purchase_variant_configurator: Migration to 18.0 (#390)