Product Attribute Variant Rules

product_attribute_variant_rules
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_attribute_variant_rules
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSSébastien BEAU, Weblate, OCA-git-bot, oca-ci, Florian Mounier
WEBSITE
WEBSITEhttps://github.com/OCA/product-attribute
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:01
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
product_template_only_form_view product.template field Inherits product.product_template_only_form_view
Models touched (2)

New fields (6)
  • 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')]
Public methods (0)

No public methods.

New fields (3)
  • 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'
Public methods (1)
  • write(self, vals)
STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/product-attribute
PULL REQUEST
PULL REQUEST[18.0][MIG] product attribute variant rules (#2154)