Product Attribute Variant Rules
product_attribute_variant_rules · OCA/product-attribute
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 38 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.06 MB
Module directory on disk
Code analysis
1 migration note
2 models
1 view
0 HTTP endpoints
Migration considerations
product_template_only_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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)
Loading…