Repository
OCA/product-attribute · module folder · Try on Runboat
Module version
1.0.1
Category
Uncategorized
Folder size
0.06 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/product-attribute
Last tracking update
2026-08-07 07:47:36
Authors
Akretion, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo Community Association (OCA)
Committers
Sébastien BEAU, Weblate, Florian Mounier, OCA-git-bot, oca-ci
Odoo dependencies
odoo/odoo:
- web
- bus
- uom
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
product_template_only_form_view product.template form Inherits product.product_template_only_form_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

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
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
260 days ago
Last activity
24 days ago
Repository
OCA/product-attribute
Pull request
[18.0][MIG] product attribute variant rules (#2154)