Product Attribute Auto Add
product_attribute_auto_add · OCA/product-attribute
Health
47/100
poor
-
Security25/25No findings
-
Activity12/25Last human commit 17 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 17.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.5 MB
Module directory on disk
Code analysis
0 migration notes
3 models
2 views
0 HTTP endpoints
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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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.