TIP: You can type at any time to perform a new search.
Product Attribute Auto Add
product_attribute_auto_add · OCA/product-attribute
- Repository
- OCA/product-attribute · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Sales
- Folder size
- 0.5 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/product-attribute
- Last tracking update
- 2026-08-07 08:22:59
- Authors
- Odoo Community Association (OCA), Cetmix
- Maintainers
- Odoo Community Association (OCA), Cetmix
- Committers
- GabbasovDinar, Weblate, OCA-git-bot, oca-ci, Mikhail Lapin
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
This module saves time by automatically managing product attribute values. When you add a new value to an attribute, it will also be automatically added in all product templates that have this attribute. You can exclude specific product templates from this automatic update by enabling the **"Disable Attribute Autoupdate"** checkbox on the product template form.
Code Analysis ⓘ
Views touched (2)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_attribute_view_form |
product.attribute.inherited.form | product.attribute | form | Inherits product.product_attribute_view_form |
product_template_form_view |
product.template.form.view | product.template | form | Inherits product.product_template_form_view |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (3)
New fields (1)
-
attribute_line_auto_addBooleanhelp='When enabled new attribute values will be automatically added to attribute line in all products templates that have this attribute.'string='Auto-Add Value to Product Templates'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
create(self, vals_list)@api.model_create_multiCreate new attribute values and automatically add them to product templates. This method extends the standard create method to automatically add new attribute values to all product templates that use the corresponding attribute, if the attribute has attribute_line_auto_add flag set to True. Args: vals_list (list): List of dictionaries containing the values to create. Returns: recordset: The newly created attribute values.
New fields (1)
-
disable_attribute_autoupdateBooleandefault=Falsehelp='Exclude this product from automatic addition of new attribute values.'
No public methods.