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
odoo/odoo:
- web
- bus
- uom
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 IDNameModelTypeStatus
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_add Boolean
    help='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'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • create(self, vals_list)
    @api.model_create_multi
    Create 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_autoupdate Boolean
    default=False help='Exclude this product from automatic addition of new attribute values.'
Public methods (0)

No public methods.