Coupons multi product criteria
coupon_criteria_multi_product · OCA/sale-promotion
Renamed to loyalty_criteria_multi_product in 16.0
Health
51/100
fair
-
Security25/25No findings
-
Activity6/25Last human commit 35 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 15.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
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.05 MB
Module directory on disk
Code analysis
1 migration note
2 models
1 view
0 HTTP endpoints
Migration considerations
coupon_program_view_form_common— 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 |
|---|---|---|---|---|
coupon_program_view_form_common |
coupon.program | form | Inherits coupon.coupon_program_view_form_common |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (4)
-
product_idsMany2many → product.productcomodel_name='product.product'required=True -
program_idMany2one → coupon.programcomodel_name='coupon.program' -
repeat_productBooleanhelp='Can product quantities count multiple times or not'string='Repeat' -
rule_min_quantityIntegercompute='_compute_rule_min_quantity'help='Minimum required product quantity to get the reward'readonly=Falsestore=Truestring='Min. Quantity'
No public methods.
New fields (2)
-
coupon_criteriaSelectiondefault='domain'help='- Domain: Standard behavior. The products are evaluated by domain.\n- Multi product: different rules can be applied to different products and all of the have to be fulfilled'selection=[('domain', 'Domain'), ('multi_product', 'Multi Product')]string='Coupon criteria' -
coupon_criteria_idsOne2many → coupon.criteriacomodel_name='coupon.criteria'inverse_name='program_id'string='Multi Product Criterias'
No public methods.