Product Internal Reference Generator

product_internal_reference_generator
REPOSITORY
REPOSITORYOCA/product-attribute
GIT
GIThttps://github.com/OCA/product-attribute.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/product-attribute/tree/16.0/product_internal_reference_generator
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSale
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ilyas, Ooops
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ilyas, Ooops
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, sbiosca-s73
WEBSITE
WEBSITEhttps://github.com/OCA/product-attribute
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:48
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-tools:
    - base_view_inheritance_extension
odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES astor
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
internal_reference_template_form_view product.code.sequence.form.view product.code.sequence form New
internal_reference_template_tree_view product.code.sequence.tree.view product.code.sequence tree New
product_normal_form_view product.product field Inherits product.product_normal_form_view
product_template_form_view_inherit product.template field Inherits product.product_template_only_form_view
product_variant_easy_edit_view product.product field Inherits product.product_variant_easy_edit_view
Models touched (3)

New fields (3)
  • name Char
    required=True
  • sequence_id Many2one → ir.sequence
    required=True args: 'ir.sequence'
  • variant_reference_numbers Integer
    default=3 required=True args: 'Digits'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • create(self, vals_list)
    @api.model_create_multi

New fields (3)
  • int_ref_template_id Many2one → product.code.sequence
    args: 'product.code.sequence', 'Internal Reference Template'
  • variants_prefix Char
    readonly=True tracking=True args: 'Internal Reference Prefix'
  • variants_sequence_id Many2one → ir.sequence
    args: 'ir.sequence'
Public methods (4)
  • btn_generate_sequence(self)
  • get_variant_next_default_code(self)
  • onchange_int_ref_template_id(self)
    @api.onchange('int_ref_template_id')
  • update_variants_default_code(self)
REPOSITORY
REPOSITORYOCA/product-attribute
GIT
GIThttps://github.com/OCA/product-attribute.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/product-attribute/tree/14.0/product_internal_reference_generator
VERSION
VERSION 1.1.1
CATEGORY
CATEGORYSale
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ilyas, Ooops
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ilyas, Ooops
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Ilyas
WEBSITE
WEBSITEhttps://github.com/OCA/product-attribute
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:01
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-tools:
    - base_view_inheritance_extension
odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES astor
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
internal_reference_template_form_view product.code.sequence.form.view product.code.sequence form New
internal_reference_template_tree_view product.code.sequence.tree.view product.code.sequence tree New
product_normal_form_view product.product field Inherits product.product_normal_form_view
product_template_form_view_inherit product.template field Inherits product.product_template_only_form_view
product_variant_easy_edit_view product.product field Inherits product.product_variant_easy_edit_view
res_config_settings_view_form res.config.settings xpath Inherits stock.res_config_settings_view_form
Models touched (5)

New fields (4)
  • active Boolean
    default=True
  • name Char
    required=True
  • sequence_id Many2one → ir.sequence
    required=True args: 'ir.sequence'
  • variant_reference_numbers Integer
    default=3 required=True args: 'Digits'
Public methods (1)
  • unlink(self)

New fields (0)

No new fields.

Public methods (1)
  • create(self, vals_list)
    @api.model_create_multi

New fields (4)
  • default_code Char
    copy=False
  • int_ref_template_id Many2one → product.code.sequence
    copy=True args: 'product.code.sequence', 'Internal Reference Template'
  • variants_prefix Char
    copy=False readonly=True tracking=True args: 'Internal Reference Prefix'
  • variants_sequence_id Many2one → ir.sequence
    copy=False args: 'ir.sequence'
Public methods (4)
  • btn_generate_sequence(self)
  • get_variant_next_default_code(self)
  • onchange_int_ref_template_id(self)
    @api.onchange('int_ref_template_id')
  • update_variants_default_code(self)

New fields (1)
  • default_int_ref_template_id Many2one → product.code.sequence
    default_model='product.template' string='Default Internal Reference Template' args: 'product.code.sequence'
Public methods (0)

No public methods.

New fields (1)
  • default_int_ref_template_id Many2one
    readonly=False related='company_id.default_int_ref_template_id'
Public methods (0)

No public methods.