| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/product-attribute |
| GIT | |
| GIT | https://github.com/OCA/product-attribute.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/product-attribute/tree/14.0/product_attribute_variant_rules |
| VERSION | |
| VERSION | 1.0.1 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Akretion |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Akretion |
| COMMITTERS | |
| COMMITTERS | Sébastien BEAU, Weblate, OCA-git-bot, oca-ci, Florian Mounier |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/product-attribute |
| 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 |
|---|---|---|---|---|
product_template_only_form_view |
product.template | field | Inherits product.product_template_only_form_view |
available_postcondition_attribute_ids
Many2many → product.attribute
comodel_name='product.attribute'
compute='_compute_available_postcondition_attribute_ids'
string='Available postconditions'
available_precondition_attribute_ids
Many2many → product.attribute
comodel_name='product.attribute'
compute='_compute_available_precondition_attribute_ids'
string='Available preconditions'
product_attribute_value_postcondition_ids
Many2many → product.attribute.value
comodel_name='product.attribute.value'
help='The product variant will exist only if these conditions are met if the precondition is met.\nThe attribute values are ANDed together except if they are from the same attribute in which case they are ORed.'
relation='product_attribute_rule_postcondition_rel'
required=True
string='Rule postconditions'
product_attribute_value_precondition_ids
Many2many → product.attribute.value
comodel_name='product.attribute.value'
help='This rule will only be applied if all the preconditions are met.\nThe attribute values are ANDed together except if they are from the same attribute in which case they are ORed.\nIf empty, the rule will always be applied.'
relation='product_attribute_rule_precondition_rel'
string='Rule preconditions'
product_tmpl_id
Many2one → product.template
comodel_name='product.template'
ondelete='cascade'
required=True
string='Product Template'
rule_type
Selection
default='only'
required=True
string='Type'
args: [('only', 'Only With'), ('never', 'Never With')]
No public methods.
product_attribute_rule_ids
One2many → product.attribute.rule
comodel_name='product.attribute.rule'
inverse_name='product_tmpl_id'
string='Product Attribute Rules'
product_attribute_value_ids
Many2many → product.attribute.value
comodel_name='product.attribute.value'
compute='_compute_product_attribute_value_ids'
string='Technical Attributes'
use_attribute_rules
Boolean
help='If checked, the product variants will be generated based on the rules defined below.'
string='Use Attribute Rules'
write(self, vals)
| STATUS | |
|---|---|
| STATUS | Open migration PR - not merged yet for this version |
| REPOSITORY | |
| REPOSITORY | OCA/product-attribute |
| PULL REQUEST | |
| PULL REQUEST | [18.0][MIG] product attribute variant rules (#2154) |