Product Attribute Auto Add

product_attribute_auto_add
REPOSITORY
REPOSITORYOCA/product-attribute
GIT
GIThttps://github.com/OCA/product-attribute.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/product-attribute/tree/17.0/product_attribute_auto_add
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Cetmix
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Cetmix
COMMITTERS
COMMITTERSGabbasovDinar, Weblate, OCA-git-bot, oca-ci, Mikhail Lapin
WEBSITE
WEBSITEhttps://github.com/OCA/product-attribute
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:06
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 field Inherits product.product_attribute_view_form
product_template_form_view product.template.form.view product.template xpath Inherits product.product_template_form_view
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.