Repository
OCA/product-attribute · module folder · Try on Runboat
Module version
0.0.1
Category
Product
Folder size
0.15 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://www.akretion.com
Last tracking update
2026-08-07 07:03:07
Authors
Akretion, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo Community Association (OCA)
Committers
GitHub, Stéphane Bidoul (ACSONE), Sébastien BEAU, David Beal, OCA Transbot, oca-travis, Antonio Esposito, Chafique
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
product_code_builder_sequence
Description

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
attribute_tree_view product.attribute tree Inherits product.attribute_tree_view
product_normal_form_view product.product form Inherits product.product_normal_form_view
product_template_only_form_view product.template form Inherits product.product_template_only_form_view
variants_tree_view product.attribute.value tree Inherits product.variants_tree_view
view_product_attribute_search product.attribute search New
view_product_attribute_value_search product.attribute.value search New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (2)
  • code Char
    args: 'Code'
  • sequence Integer
    args: 'Sequence'
Public methods (0)

No public methods.

New fields (3)
  • attribute_sequence Integer
    related='attribute_id.sequence' store=True
  • code Char
    args: 'Code'
  • comment Text
    args: 'Comment'
Public methods (0)

No public methods.

New fields (2)
  • default_code Char
    compute='_compute_default_code' compute_sudo=True help='Reference of the variant' inverse='_inverse_default_code' store=True
  • manual_default_code Char
    help='hidden field'
Public methods (0)

No public methods.

New fields (3)
  • auto_default_code Boolean
    default=compute_default_auto_default_code help='Generate a reference automatically based on attribute codes' string='Automatic Reference'
  • default_code Char
    related='prefix_code'
  • prefix_code Char
    copy=False help='This is the code of the product modelIf Automatic Reference is checked, this field is used as a prefix for the product variant reference.\nIn case that there is only one variant this code is the same as the code of the uniq variant' string='Internal Reference'
Public methods (1)
  • compute_default_auto_default_code(self)