Product Attribute Value Archive
Allows to archive a product.attribute.value which is referenced by archived product.product.
In std odoo, removing a product.attribute.value from a product.template either leads to a product.product unlink or archive, depending on if the variant is referenced on a sale.order.line or not. Then, if user tries to remove the product.attribute.value from the product.attribute, he will get an error because of the ondelete restrict on product.product.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Lets you archive product attribute values (like a colour or size) that are still used by archived product variants, instead of being blocked by Odoo. When a variant is reactivated, its attribute values are automatically restored.
In standard Odoo, when you remove an attribute value from a product, the related variant may be archived rather than deleted if it is used on a sales order line. The attribute value then stays linked to that archived variant, and Odoo refuses to delete it.
This module changes that behaviour:
- When you try to delete an attribute value, Odoo first checks whether all the variants using it are archived. If they are, the value is archived (hidden) instead of deleted, so no error appears.
- If at least one variant using the value is still active, the value is deleted as usual.
- When you reactivate an archived variant, its attribute values and the related attribute lines are automatically unarchived, so the variant becomes fully usable again.
- If you create a new attribute value with the same name and attribute as an archived one, the archived value is simply reactivated instead of creating a duplicate.
The module adds an active flag on product.attribute.value and works together with product.product and product.template.attribute.value. It installs automatically and does not add any new menu or screen; the changes happen behind the scenes in the product attribute and variant screens.
Depends on
Models and fields (2)
- product.product · extends an existing model
- product.attribute.value · extends an existing modelactive
Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 13.0
Confirmed on 2026-11-03 in branch 13.0 of OCA/product-variant.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.