| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/product-variant |
| GIT | |
| GIT | https://github.com/OCA/product-variant.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/product-variant/tree/19.0/product_variant_default_code |
| VERSION | |
| VERSION | 1.0.0 |
| CATEGORY | |
| CATEGORY | Product |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Tecnativa, Odoo Community Association (OCA), Akretion, AvancOSC, Shine IT |
| MAINTAINERS | |
| MAINTAINERS | Tecnativa, Odoo Community Association (OCA), Akretion, AvancOSC, Shine IT |
| COMMITTERS | |
| COMMITTERS | OCA-git-bot, oca-ci, arantxa-s73 |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/product-variant |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 19:40:48 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - product - base - base_setup - web - bus - web_tour - html_editor - uom |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | This module automatically generate Product Reference (default_code) according to attributes data with a configurable behavior. It defines a reference mask on the product templates so the variants references are automatically set. For example: - Product template: Jacket - Attributes: - Color: White, Black - Size: M, L - Reference mask: JKT01-\[Color\]-\[Size\] - Reference on variants: - JKT01-Wh-M Jacket White M - JKT01-Bl-M Jacket Black M - JKT01-Wh-L Jacket White L - JKT01-Bl-L Jacket Black L |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
attribute_tree_view |
product.attribute | field | Inherits product.attribute_tree_view | |
product_normal_form_view |
product.product | field | Inherits product.product_normal_form_view | |
product_template_only_form_view |
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 | |
view_general_configuration |
res.config.settings | xpath | Inherits base_setup.res_config_settings_view_form | |
view_product_attribute_form |
product.attribute | field | Inherits product.product_attribute_view_form | |
view_product_attribute_search |
product.attribute | search | New |
code
Char
string='Attribute Code'
No public methods.
code
Char
compute='_compute_code'
readonly=False
store=True
string='Attribute Value Code'
No public methods.
default_code
Char
compute='_compute_default_code'
inverse='_inverse_default_code'
readonly=False
store=True
manual_code
Boolean
default=False
string='Manual Reference'
No public methods.
code_prefix
Char
help='Add prefix to product variant reference (default code)'
string='Reference Prefix'
reference_mask
Char
compute='_compute_reference_mask'
copy=False
help='Reference mask for building internal references of a variant generated from this template.\nExample:\nA product named ABC with 2 attributes: Size and Color:\nProduct: ABC\nColor: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\nSize: L (l), XL(x)\nWhen setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\nIf you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n When saved, the default code on variants will be something like \n `fancyA/l~r~l` (for variant with Color "Red" and Size "L") `fancyA/x~y~x` (for variant with Color "Yellow" and Size "XL")\nNote: make sure characters "[,]" do not appear in your attribute name'
inverse='_inverse_reference_mask'
store=True
string='Variant reference mask'
variant_default_code_error
Text
compute='_compute_variant_default_code_error'
create(self, vals_list)
is_automask(self)
group_product_default_code_manual_mask
Boolean
default=False
help='Set behaviour of codes. Default: Automask (depends on variant use: see Sales/Purchases configuration)'
implied_group='product_variant_default_code.group_product_default_code_manual_mask'
string='Product Default Code Manual Mask'
prefix_as_default_code
Boolean
config_parameter='product_variant_default_code.prefix_as_default_code'
default=False
string='Reference Prefix as default Reference'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/product-variant |
| GIT | |
| GIT | https://github.com/OCA/product-variant.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/product-variant/tree/18.0/product_variant_default_code |
| VERSION | |
| VERSION | 1.0.0 |
| CATEGORY | |
| CATEGORY | Product |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Tecnativa, Odoo Community Association (OCA), Akretion, AvancOSC, Shine IT |
| MAINTAINERS | |
| MAINTAINERS | Tecnativa, Odoo Community Association (OCA), Akretion, AvancOSC, Shine IT |
| COMMITTERS | |
| COMMITTERS | Weblate, OCA-git-bot, oca-ci, Bhavesh Heliconia |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/product-variant |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 19:30:13 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - product - base - base_setup - web - bus - web_tour - html_editor - uom |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | This module automatically generate Product Reference (default_code) according to attributes data with a configurable behavior. It defines a reference mask on the product templates so the variants references are automatically set. For example: - Product template: Jacket - Attributes: - Color: White, Black - Size: M, L - Reference mask: JKT01-\[Color\]-\[Size\] - Reference on variants: - JKT01-Wh-M Jacket White M - JKT01-Bl-M Jacket Black M - JKT01-Wh-L Jacket White L - JKT01-Bl-L Jacket Black L |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
attribute_tree_view |
product.attribute | field | Inherits product.attribute_tree_view | |
product_normal_form_view |
product.product | field | Inherits product.product_normal_form_view | |
product_template_only_form_view |
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 | |
view_general_configuration |
res.config.settings | xpath | Inherits base_setup.res_config_settings_view_form | |
view_product_attribute_form |
product.attribute | field | Inherits product.product_attribute_view_form | |
view_product_attribute_search |
product.attribute | search | New |
code
Char
string='Attribute Code'
No public methods.
code
Char
compute='_compute_code'
readonly=False
store=True
string='Attribute Value Code'
No public methods.
default_code
Char
compute='_compute_default_code'
inverse='_inverse_default_code'
readonly=False
store=True
manual_code
Boolean
default=False
string='Manual Reference'
No public methods.
code_prefix
Char
help='Add prefix to product variant reference (default code)'
string='Reference Prefix'
reference_mask
Char
compute='_compute_reference_mask'
copy=False
help='Reference mask for building internal references of a variant generated from this template.\nExample:\nA product named ABC with 2 attributes: Size and Color:\nProduct: ABC\nColor: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\nSize: L (l), XL(x)\nWhen setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\nIf you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n When saved, the default code on variants will be something like \n `fancyA/l~r~l` (for variant with Color "Red" and Size "L") `fancyA/x~y~x` (for variant with Color "Yellow" and Size "XL")\nNote: make sure characters "[,]" do not appear in your attribute name'
inverse='_inverse_reference_mask'
store=True
string='Variant reference mask'
variant_default_code_error
Text
compute='_compute_variant_default_code_error'
create(self, vals_list)
is_automask(self)
group_product_default_code_manual_mask
Boolean
default=False
help='Set behaviour of codes. Default: Automask (depends on variant use: see Sales/Purchases configuration)'
implied_group='product_variant_default_code.group_product_default_code_manual_mask'
string='Product Default Code Manual Mask'
prefix_as_default_code
Boolean
config_parameter='product_variant_default_code.prefix_as_default_code'
default=False
string='Reference Prefix as default Reference'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/product-variant |
| GIT | |
| GIT | https://github.com/OCA/product-variant.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/product-variant/tree/17.0/product_variant_default_code |
| VERSION | |
| VERSION | 1.0.0 |
| CATEGORY | |
| CATEGORY | Product |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Tecnativa, Odoo Community Association (OCA), Akretion, AvancOSC, Shine IT |
| MAINTAINERS | |
| MAINTAINERS | Tecnativa, Odoo Community Association (OCA), Akretion, AvancOSC, Shine IT |
| COMMITTERS | |
| COMMITTERS | Pedro M. Baeza, Weblate, OCA-git-bot, oca-ci |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/product-variant |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 19:20:06 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - product - base - base_setup - web - bus - web_tour - uom |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | This module automatically generate Product Reference (default_code) according to attributes data with a configurable behavior. It defines a reference mask on the product templates so the variants references are automatically set. For example: - Product template: Jacket - Attributes: - Color: White, Black - Size: M, L - Reference mask: JKT01-\[Color\]-\[Size\] - Reference on variants: - JKT01-Wh-M Jacket White M - JKT01-Bl-M Jacket Black M - JKT01-Wh-L Jacket White L - JKT01-Bl-L Jacket Black L |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
attribute_tree_view |
product.attribute | field | Inherits product.attribute_tree_view | |
product_normal_form_view |
product.product | field | Inherits product.product_normal_form_view | |
product_template_only_form_view |
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 | |
view_general_configuration |
res.config.settings | xpath | Inherits base_setup.res_config_settings_view_form | |
view_product_attribute_form |
product.attribute | field | Inherits product.product_attribute_view_form | |
view_product_attribute_search |
product.attribute | search | New |
code
Char
string='Attribute Code'
No public methods.
code
Char
compute='_compute_code'
readonly=False
store=True
string='Attribute Value Code'
No public methods.
default_code
Char
compute='_compute_default_code'
inverse='_inverse_default_code'
readonly=False
store=True
manual_code
Boolean
default=False
string='Manual Reference'
No public methods.
code_prefix
Char
help='Add prefix to product variant reference (default code)'
string='Reference Prefix'
reference_mask
Char
compute='_compute_reference_mask'
copy=False
help='Reference mask for building internal references of a variant generated from this template.\nExample:\nA product named ABC with 2 attributes: Size and Color:\nProduct: ABC\nColor: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\nSize: L (l), XL(x)\nWhen setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\nIf you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n When saved, the default code on variants will be something like \n `fancyA/l~r~l` (for variant with Color "Red" and Size "L") `fancyA/x~y~x` (for variant with Color "Yellow" and Size "XL")\nNote: make sure characters "[,]" do not appear in your attribute name'
inverse='_inverse_reference_mask'
store=True
string='Variant reference mask'
variant_default_code_error
Text
compute='_compute_variant_default_code_error'
create(self, vals_list)
is_automask(self)
group_product_default_code_manual_mask
Boolean
default=False
help='Set behaviour of codes. Default: Automask (depends on variant use: see Sales/Purchases configuration)'
implied_group='product_variant_default_code.group_product_default_code_manual_mask'
string='Product Default Code Manual Mask'
prefix_as_default_code
Boolean
config_parameter='product_variant_default_code.prefix_as_default_code'
default=False
string='Reference Prefix as default Reference'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/product-variant |
| GIT | |
| GIT | https://github.com/OCA/product-variant.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/product-variant/tree/16.0/product_variant_default_code |
| VERSION | |
| VERSION | 1.1.4 |
| CATEGORY | |
| CATEGORY | Product |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Tecnativa, Odoo Community Association (OCA), Akretion, AvancOSC, Shine IT |
| MAINTAINERS | |
| MAINTAINERS | Tecnativa, Odoo Community Association (OCA), Akretion, AvancOSC, Shine IT |
| COMMITTERS | |
| COMMITTERS | Pedro M. Baeza, GitHub, Weblate, OCA-git-bot, Florent THOMAS, oca-ci, pilarvargas-tecnativa, Gil Arasa Verge, RabbitJon-S73, Raul-S73, Ignacio J. Ortega, aliciagarzo |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/product-variant |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:53:48 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - product - base - base_setup - web - bus - web_tour - uom |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
attribute_tree_view |
product.attribute | field | Inherits product.attribute_tree_view | |
product_normal_form_view |
product.product | field | Inherits product.product_normal_form_view | |
product_template_only_form_view |
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 | |
view_general_configuration |
res.config.settings | xpath | Inherits base_setup.res_config_settings_view_form | |
view_product_attribute_form |
product.attribute | field | Inherits product.product_attribute_view_form | |
view_product_attribute_search |
product.attribute | search | New |
code
Char
string='Attribute Code'
No public methods.
code
Char
compute='_compute_code'
readonly=False
store=True
string='Attribute Value Code'
No public methods.
default_code
Char
compute='_compute_default_code'
inverse='_inverse_default_code'
readonly=False
store=True
manual_code
Boolean
default=False
string='Manual Reference'
No public methods.
code_prefix
Char
help='Add prefix to product variant reference (default code)'
string='Reference Prefix'
reference_mask
Char
compute='_compute_reference_mask'
copy=False
help='Reference mask for building internal references of a variant generated from this template.\nExample:\nA product named ABC with 2 attributes: Size and Color:\nProduct: ABC\nColor: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\nSize: L (l), XL(x)\nWhen setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\nIf you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n When saved, the default code on variants will be something like \n `fancyA/l~r~l` (for variant with Color "Red" and Size "L") `fancyA/x~y~x` (for variant with Color "Yellow" and Size "XL")\nNote: make sure characters "[,]" do not appear in your attribute name'
inverse='_inverse_reference_mask'
store=True
string='Variant reference mask'
variant_default_code_error
Text
compute='_compute_variant_default_code_error'
create(self, vals_list)
is_automask(self)
group_product_default_code_manual_mask
Boolean
default=False
help='Set behaviour of codes. Default: Automask (depends on variant use: see Sales/Purchases configuration)'
implied_group='product_variant_default_code.group_product_default_code_manual_mask'
string='Product Default Code Manual Mask'
prefix_as_default_code
Boolean
config_parameter='product_variant_default_code.prefix_as_default_code'
default=False
string='Reference Prefix as default Reference'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/product-variant |
| GIT | |
| GIT | https://github.com/OCA/product-variant.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/product-variant/tree/15.0/product_variant_default_code |
| VERSION | |
| VERSION | 1.0.1 |
| CATEGORY | |
| CATEGORY | Product |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Tecnativa, Odoo Community Association (OCA), Akretion, AvancOSC, Shine IT |
| MAINTAINERS | |
| MAINTAINERS | Tecnativa, Odoo Community Association (OCA), Akretion, AvancOSC, Shine IT |
| COMMITTERS | |
| COMMITTERS | Weblate, OCA-git-bot, David, oca-ci, pilarvargas-tecnativa |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/product-variant |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:46:35 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - product - base - base_setup - web - bus - web_tour - uom |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
attribute_tree_view |
product.attribute | field | Inherits product.attribute_tree_view | |
product_normal_form_view |
product.product | field | Inherits product.product_normal_form_view | |
product_template_only_form_view |
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 | |
view_general_configuration |
res.config.settings | xpath | Inherits base_setup.res_config_settings_view_form | |
view_product_attribute_form |
product.attribute | field | Inherits product.product_attribute_view_form | |
view_product_attribute_search |
product.attribute | search | New |
code
Char
string='Attribute Code'
No public methods.
code
Char
compute='_compute_code'
readonly=False
store=True
string='Attribute Value Code'
No public methods.
default_code
Char
compute='_compute_default_code'
inverse='_inverse_default_code'
readonly=False
store=True
manual_code
Boolean
default=False
string='Manual Reference'
No public methods.
code_prefix
Char
help='Add prefix to product variant reference (default code)'
string='Reference Prefix'
reference_mask
Char
compute='_compute_reference_mask'
copy=False
help='Reference mask for building internal references of a variant generated from this template.\nExample:\nA product named ABC with 2 attributes: Size and Color:\nProduct: ABC\nColor: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\nSize: L (l), XL(x)\nWhen setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\nIf you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n When saved, the default code on variants will be something like \n `fancyA/l~r~l` (for variant with Color "Red" and Size "L") `fancyA/x~y~x` (for variant with Color "Yellow" and Size "XL")\nNote: make sure characters "[,]" do not appear in your attribute name'
inverse='_inverse_reference_mask'
store=True
string='Variant reference mask'
variant_default_code_error
Text
compute='_compute_variant_default_code_error'
create(self, vals)
is_automask(self)
group_product_default_code_manual_mask
Boolean
default=False
help='Set behaviour of codes. Default: Automask (depends on variant use: see Sales/Purchases configuration)'
implied_group='product_variant_default_code.group_product_default_code_manual_mask'
string='Product Default Code Manual Mask'
prefix_as_default_code
Boolean
config_parameter='product_variant_default_code.prefix_as_default_code'
default=False
string='Reference Prefix as default Reference'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/product-variant |
| GIT | |
| GIT | https://github.com/OCA/product-variant.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/product-variant/tree/14.0/product_variant_default_code |
| VERSION | |
| VERSION | 3.0.4 |
| CATEGORY | |
| CATEGORY | Product |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Tecnativa, Odoo Community Association (OCA), Akretion, AvancOSC, Shine IT |
| MAINTAINERS | |
| MAINTAINERS | Tecnativa, Odoo Community Association (OCA), Akretion, AvancOSC, Shine IT |
| COMMITTERS | |
| COMMITTERS | Pedro M. Baeza, GitHub, david, OCA Transbot, João Marques, Sébastien BEAU, oca-travis, Weblate, OCA-git-bot, pilarvargas-tecnativa, Kevin.roche, Ilyas, oca-git-bot, RabbitJon-S73 |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/product-variant |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:41:01 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - product - base - base_setup - web - bus - web_tour - uom |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
attribute_tree_view |
product.attribute | field | Inherits product.attribute_tree_view | |
product_normal_form_view |
product.product | field | Inherits product.product_normal_form_view | |
product_template_only_form_view |
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 | |
view_general_configuration |
res.config.settings | xpath | Inherits base_setup.res_config_settings_view_form | |
view_product_attribute_form |
product.attribute | field | Inherits product.product_attribute_view_form | |
view_product_attribute_search |
product.attribute | search | New |
code
Char
string='Attribute Code'
No public methods.
code
Char
compute='_compute_code'
readonly=False
store=True
string='Attribute Value Code'
No public methods.
default_code
Char
compute='_compute_default_code'
inverse='_inverse_default_code'
readonly=False
store=True
manual_code
Boolean
default=False
string='Manual Reference'
No public methods.
code_prefix
Char
help='Add prefix to product variant reference (default code)'
string='Reference Prefix'
reference_mask
Char
compute='_compute_reference_mask'
copy=False
help='Reference mask for building internal references of a variant generated from this template.\nExample:\nA product named ABC with 2 attributes: Size and Color:\nProduct: ABC\nColor: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\nSize: L (l), XL(x)\nWhen setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\nIf you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n When saved, the default code on variants will be something like \n `fancyA/l~r~l` (for variant with Color "Red" and Size "L") `fancyA/x~y~x` (for variant with Color "Yellow" and Size "XL")\nNote: make sure characters "[,]" do not appear in your attribute name'
inverse='_inverse_reference_mask'
store=True
string='Variant reference mask'
variant_default_code_error
Text
compute='_compute_variant_default_code_error'
create(self, vals)
is_automask(self)
group_product_default_code_manual_mask
Boolean
default=False
help='Set behaviour of codes. Default: Automask (depends on variant use: see Sales/Purchases configuration)'
implied_group='product_variant_default_code.group_product_default_code_manual_mask'
string='Product Default Code Manual Mask'
prefix_as_default_code
Boolean
config_parameter='product_variant_default_code.prefix_as_default_code'
default=False
string='Reference Prefix as default Reference'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/product-variant |
| GIT | |
| GIT | https://github.com/OCA/product-variant.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/product-variant/tree/13.0/product_variant_default_code |
| VERSION | |
| VERSION | 1.1.0 |
| CATEGORY | |
| CATEGORY | Product |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Tecnativa, Odoo Community Association (OCA), AvancOSC, Shine IT |
| MAINTAINERS | |
| MAINTAINERS | Tecnativa, Odoo Community Association (OCA), AvancOSC, Shine IT |
| COMMITTERS | |
| COMMITTERS | Pedro M. Baeza, OCA Transbot, João Marques, oca-travis, Weblate, OCA-git-bot, Simone Orsi, Rad0van |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/product-variant |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:34:14 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - product - base - base_setup - web - bus - web_tour - uom |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
attribute_tree_view |
product.attribute | field | Inherits product.attribute_tree_view | |
product_normal_form_view |
product.product | field | Inherits product.product_normal_form_view | |
product_template_only_form_view |
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 | |
view_general_configuration |
res.config.settings | xpath | Inherits base_setup.res_config_settings_view_form | |
view_product_attribute_form |
product.attribute | xpath | Inherits product.product_attribute_view_form | |
view_product_attribute_search |
product.attribute | search | New |
code
Char
string='Attribute Code'
write(self, vals)
code
Char
default=onchange_name
string='Attribute Value Code'
create(self, vals)
onchange_name(self)
write(self, vals)
manual_code
Boolean
string='Manual Reference'
create(self, vals)
onchange_default_code(self)
code_prefix
Char
help='Add prefix to product variant reference (default code)'
string='Reference Prefix'
reference_mask
Char
copy=False
help='Reference mask for building internal references of a variant generated from this template.\nExample:\nA product named ABC with 2 attributes: Size(S) and Color(C):\nProduct: ABC\nColor: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\nSize: L (l), XL(x)\nWhen setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `Cr-Sl` `Cb-Sl` `Cr-Sx` ...\nIf you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n When saved, the default code on variants will be something like \n `fancyA/Sl~Cr~Sl` (for variant with Color "Red" and Size "L") `fancyA/Sx~Cy~Sx` (for variant with Color "Yellow" and Size "XL")\nNote: make sure characters "[,]" do not appear in your attribute name'
string='Variant reference mask'
create(self, vals)
write(self, vals)
group_product_default_code_manual_mask
Boolean
default=False
help='Set behaviour of codes. Default: Automask (depends on variant use: see Sales/Purchases configuration)'
implied_group='product_variant_default_code.group_product_default_code_manual_mask'
string='Product Default Code Manual Mask'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/product-variant |
| GIT | |
| GIT | https://github.com/OCA/product-variant.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/product-variant/tree/12.0/product_variant_default_code |
| VERSION | |
| VERSION | 1.0.1 |
| CATEGORY | |
| CATEGORY | Product |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Tecnativa, Odoo Community Association (OCA), AvancOSC, Shine IT |
| MAINTAINERS | |
| MAINTAINERS | Tecnativa, Odoo Community Association (OCA), AvancOSC, Shine IT |
| COMMITTERS | |
| COMMITTERS | OCA Transbot, Ernesto Tejeda, oca-travis, Weblate, OCA-git-bot, Oihane Crucelaegui, Mikel Arregi |
| WEBSITE | |
| WEBSITE | https://odoo-community.org/ |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:29:19 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - product - base - decimal_precision - base_setup - web - bus - web_tour - uom |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
attribute_tree_view |
product.attribute | field | Inherits product.attribute_tree_view | |
product_normal_form_view |
product.product | field | Inherits product.product_normal_form_view | |
product_template_only_form_view |
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 | |
variants_tree_view_inh_variantdefaultcode |
variants.tree.view.inh.variantdefaultcode | product.attribute.value | field | Inherits product.variants_tree_view |
view_general_configuration |
res.config.settings | xpath | Inherits base_setup.res_config_settings_view_form | |
view_product_attribute_form |
product.attribute | xpath | Inherits product.product_attribute_view_form | |
view_product_attribute_search |
product.attribute | search | New |
code
Char
string='Attribute Code'
write(self, vals)
code
Char
default=onchange_name
oldname='attribute_code'
string='Attribute Value Code'
create(self, vals)
onchange_name(self)
write(self, vals)
manual_code
Boolean
string='Manual Reference'
create(self, vals)
onchange_default_code(self)
code_prefix
Char
help='Add prefix to product variant reference (default code)'
oldname='prefix_code'
string='Reference Prefix'
reference_mask
Char
copy=False
help='Reference mask for building internal references of a variant generated from this template.\nExample:\nA product named ABC with 2 attributes: Size and Color:\nProduct: ABC\nColor: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\nSize: L (l), XL(x)\nWhen setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\nIf you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n When saved, the default code on variants will be something like \n `fancyA/l~r~l` (for variant with Color "Red" and Size "L") `fancyA/x~y~x` (for variant with Color "Yellow" and Size "XL")\nNote: make sure characters "[,]" do not appear in your attribute name'
string='Variant reference mask'
create(self, vals)
write(self, vals)
group_product_default_code
Selection
help='Set behaviour of codes (depends on variant use: see Sales/Purchases configuration)'
implied_group='product_variant_default_code.group_product_default_code'
string='Product Default Code behaviour'
args: [(0, 'Automask'), (1, 'Manual Mask')]
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/product-variant |
| GIT | |
| GIT | https://github.com/OCA/product-variant.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/product-variant/tree/11.0/product_variant_default_code |
| VERSION | |
| VERSION | 1.0.1 |
| CATEGORY | |
| CATEGORY | Product |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Tecnativa, Odoo Community Association (OCA), AvancOSC, Shine IT |
| MAINTAINERS | |
| MAINTAINERS | Tecnativa, Odoo Community Association (OCA), AvancOSC, Shine IT |
| COMMITTERS | |
| COMMITTERS | Pedro M. Baeza, GitHub, OCA Transbot, oca-travis, Weblate, OCA-git-bot, Daniel-CA |
| WEBSITE | |
| WEBSITE | https://odoo-community.org/ |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:23:58 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - product - base - decimal_precision - base_setup - web - bus - web_tour |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
attribute_tree_view |
product.attribute | field | Inherits product.attribute_tree_view | |
product_normal_form_view |
product.product | field | Inherits product.product_normal_form_view | |
product_template_only_form_view |
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 | |
variants_tree_view_inh_variantdefaultcode |
variants.tree.view.inh.variantdefaultcode | product.attribute.value | field | Inherits product.variants_tree_view |
view_general_configuration |
res.config.settings | xpath | Inherits base_setup.res_config_settings_view_form | |
view_product_attribute_form |
product.attribute | xpath | Inherits product.product_attribute_view_form | |
view_product_attribute_search |
product.attribute | search | New |
code
Char
string='Attribute Code'
write(self, vals)
code
Char
default=onchange_name
oldname='attribute_code'
string='Attribute Value Code'
create(self, vals)
onchange_name(self)
write(self, vals)
manual_code
Boolean
string='Manual Reference'
create(self, vals)
onchange_default_code(self)
code_prefix
Char
help='Add prefix to product variant reference (default code)'
oldname='prefix_code'
string='Reference Prefix'
reference_mask
Char
copy=False
help='Reference mask for building internal references of a variant generated from this template.\nExample:\nA product named ABC with 2 attributes: Size and Color:\nProduct: ABC\nColor: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\nSize: L (l), XL(x)\nWhen setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\nIf you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n When saved, the default code on variants will be something like \n `fancyA/l~r~l` (for variant with Color "Red" and Size "L") `fancyA/x~y~x` (for variant with Color "Yellow" and Size "XL")\nNote: make sure characters "[,]" do not appear in your attribute name'
string='Variant reference mask'
create(self, vals)
write(self, vals)
group_product_default_code
Selection
help='Set behaviour of codes (depends on variant use: see Sales/Inventory configuration)'
implied_group='product_variant_default_code.group_product_default_code'
string='Product Default Code behaviour'
args: [(0, 'Automask'), (1, 'Manual Mask')]
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/product-variant |
| GIT | |
| GIT | https://github.com/OCA/product-variant.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/product-variant/tree/10.0/product_variant_default_code |
| VERSION | |
| VERSION | 1.0.3 |
| CATEGORY | |
| CATEGORY | Product |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Tecnativa, Odoo Community Association (OCA), AvancOSC, Shine IT |
| MAINTAINERS | |
| MAINTAINERS | Tecnativa, Odoo Community Association (OCA), AvancOSC, Shine IT |
| COMMITTERS | |
| COMMITTERS | Pedro M. Baeza, GitHub, OCA Transbot, oca-travis, Weblate, OCA-git-bot, Pierrick Brun, David Vidal |
| WEBSITE | |
| WEBSITE | https://odoo-community.org/ |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:19:57 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - product - base - decimal_precision - base_setup - web_kanban - web - bus - web_tour - report |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
attribute_tree_view |
product.attribute | field | Inherits product.attribute_tree_view | |
product_normal_form_view |
product.product | field | Inherits product.product_normal_form_view | |
product_template_only_form_view |
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 | |
variants_tree_view_inh_variantdefaultcode |
variants.tree.view.inh.variantdefaultcode | product.attribute.value | field | Inherits product.variants_tree_view |
view_general_configuration |
base.config.settings | group | Inherits base_setup.view_general_configuration | |
view_product_attribute_search |
product.attribute | search | New |
group_product_default_code
Selection
help='Set behaviour of codes (depends on variant use: see Sales/Purchases configuration)'
implied_group='product_variant_default_code.group_product_default_code'
string='Product Default Code behaviour'
args: [(0, 'Automask'), (1, 'Manual Mask')]
No public methods.
code
Char
string='Attribute Code'
write(self, vals)
code
Char
default=onchange_name
oldname='attribute_code'
string='Attribute Value Code'
create(self, vals)
onchange_name(self)
write(self, vals)
manual_code
Boolean
string='Manual Reference'
create(self, vals)
onchange_default_code(self)
render_default_code(self)
write(self, vals)
code_prefix
Char
help='Add prefix to product variant reference (default code)'
oldname='prefix_code'
string='Reference Prefix'
reference_mask
Char
copy=False
help='Reference mask for building internal references of a variant generated from this template.\nExample:\nA product named ABC with 2 attributes: Size and Color:\nProduct: ABC\nColor: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\nSize: L (l), XL(x)\nWhen setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\nIf you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n When saved, the default code on variants will be something like \n `fancyA/l~r~l` (for variant with Color "Red" and Size "L") `fancyA/x~y~x` (for variant with Color "Yellow" and Size "XL")\nNote: make sure characters "[,]" do not appear in your attribute name'
string='Variant reference mask'
create(self, vals)
onchange_reference_mask(self)
write(self, vals)