TIP: You can type at any time to perform a new search.
Product Variant Change Attribute Value
product_variant_change_attribute_value · OCA/product-variant
- Repository
- OCA/product-variant · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Product Variant
- Folder size
- 0.09 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/product-variant
- Last tracking update
- 2026-08-07 08:42:58
- Authors
- Odoo Community Association (OCA), Camptocamp SA
- Maintainers
- Odoo Community Association (OCA), Camptocamp SA
- Committers
- Weblate, OCA-git-bot, oca-ci, Khôi (Kiên Kim)
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
In standard Odoo there is no way to change the attribute values assigned to a product variant. This module adds a wizard to change or remove attribute values on all product variant selected. When an attribute value is removed from all variants of a template, it will also be removed from the configuration of the template.
Code Analysis ⓘ
Views touched (1)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_product_variant_update_attribute_wizard |
Product Variant Update Attribute | variant.attribute.value.wizard | form | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (2)
New fields (5)
-
attribute_actionSelectiondefault='do_nothing'required=Trueselection='_selection_action' -
attribute_idMany2one → product.attributecomodel_name='product.attribute'ondelete='cascade'related='product_attribute_value_id.attribute_id'store=True -
product_attribute_value_idMany2one → product.attribute.valuecomodel_name='product.attribute.value'ondelete='cascade' -
replaced_by_idMany2one → product.attribute.valuecomodel_name='product.attribute.value'domain="[('id', 'in', selectable_attribute_value_ids)]"ondelete='cascade'string='Replace with' -
selectable_attribute_value_idsMany2many → product.attribute.valuecomodel_name='product.attribute.value'compute='_compute_selectable_attribute_value_ids'
No public methods.
New fields (7)
-
attribute_value_idsMany2many → product.attribute.valuecomodel_name='product.attribute.value' -
attributes_action_idsMany2many → variant.attribute.value.actioncomodel_name='variant.attribute.value.action'relation='variant_attribute_wizard_attribute_action_rel' -
available_attribute_idsMany2many → product.attributecomodel_name='product.attribute' -
filter_attribute_idMany2one → product.attributecomodel_name='product.attribute'domain="[('id', 'in', available_attribute_ids)]" -
product_idsMany2many → product.productcomodel_name='product.product' -
product_template_countIntegerreadonly=True -
product_variant_countIntegerreadonly=True
-
action_apply(self) -
default_get(self, fields_list)@api.model
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 30 days ago
- Last activity
- 29 days ago
- Repository
- OCA/product-variant
- Pull request
- [19.0][MIG] product_variant_change_attribute_value: Migration to 19.0 (#459)