Product Code Builder

product_code_builder
REPOSITORY
REPOSITORYOCA/product-attribute
GIT
GIThttps://github.com/OCA/product-attribute.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/product-attribute/tree/8.0/product_code_builder
VERSION
VERSION 0.0.1
CATEGORY
CATEGORYProduct
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSGitHub, Stéphane Bidoul (ACSONE), OCA Transbot, Sébastien BEAU, David Beal, oca-travis, Chafique, Antonio Esposito
WEBSITE
WEBSITEhttps://www.akretion.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:23
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - report
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
attribute_tree_view product.attribute field Inherits product.attribute_tree_view
product_normal_form_view product.product xpath Inherits product.product_normal_form_view
product_template_only_form_view product.template xpath Inherits product.product_template_only_form_view
variants_tree_view product.attribute.value field Inherits product.variants_tree_view
view_product_attribute_search product.attribute search New
view_product_attribute_value_search product.attribute.value search New
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)