TIP: You can type at any time to perform a new search.
Product Attribute Variant Rules
product_attribute_variant_rules · OCA/product-attribute
- 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
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
Code Analysis ⓘ
Views touched (1)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_idsMany2many → product.attributecomodel_name='product.attribute'compute='_compute_available_postcondition_attribute_ids'string='Available postconditions' -
available_precondition_attribute_idsMany2many → product.attributecomodel_name='product.attribute'compute='_compute_available_precondition_attribute_ids'string='Available preconditions' -
product_attribute_value_postcondition_idsMany2many → product.attribute.valuecomodel_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=Truestring='Rule postconditions' -
product_attribute_value_precondition_idsMany2many → product.attribute.valuecomodel_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_idMany2one → product.templatecomodel_name='product.template'ondelete='cascade'required=Truestring='Product Template' -
rule_typeSelectiondefault='only'required=Truestring='Type' args: [('only', 'Only With'), ('never', 'Never With')]
No public methods.
New fields (3)
-
product_attribute_rule_idsOne2many → product.attribute.rulecomodel_name='product.attribute.rule'inverse_name='product_tmpl_id'string='Product Attribute Rules' -
product_attribute_value_idsMany2many → product.attribute.valuecomodel_name='product.attribute.value'compute='_compute_product_attribute_value_ids'string='Technical Attributes' -
use_attribute_rulesBooleanhelp='If checked, the product variants will be generated based on the rules defined below.'string='Use Attribute Rules'
-
write(self, vals)
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 259 days ago
- Last activity
- 24 days ago
- Repository
- OCA/product-attribute
- Pull request
- [18.0][MIG] product attribute variant rules (#2154)