Loyalty multi product criteria
loyalty_criteria_multi_product · OCA/sale-promotion
Replaces
coupon_criteria_multi_product (16.0) Health
72/100
fair
-
Security25/25No findings
-
Activity20/25Last human commit 7 months ago
-
Required by15/251 module depends on it
-
Maturity12/25In 2 Odoo series since 16.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.07 MB
Module directory on disk
Code analysis
0 migration notes
3 models
3 views
0 HTTP endpoints
Description
Base module that allows to define complex rules on products to fulfill the conditions of a loyalty program, so for a given set of products we could define a minimum quantity and another for others, being all those criterias mandatory for the program to be applied.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
loyalty_program_view_form_common |
loyalty.program | form | Inherits loyalty.loyalty_program_view_form | |
loyalty_rule_view_form |
loyalty.rule | form | Inherits loyalty.loyalty_rule_view_form | |
loyalty_rule_view_kanban |
loyalty.rule | kanban | Inherits loyalty.loyalty_rule_view_kanban |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (3)
-
product_idsMany2many → product.productcomodel_name='product.product'required=True -
rule_idMany2one → loyalty.rulecomodel_name='loyalty.rule' -
rule_min_quantityIntegercompute='_compute_rule_min_quantity'help='Minimum required product quantity to get the reward'readonly=Truestore=Truestring='Min. Quantity'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (2)
-
loyalty_criteriaSelectiondefault='domain'help='- Domain: Standard behavior. The products are evaluated by domain.\n- Multi product: rules can be applied to different products and all of the have to be fulfilled'selection=[('domain', 'Domain'), ('multi_product', 'Multi Product')]string='Loyalty criteria' -
loyalty_criteria_idsOne2many → loyalty.criteriacomodel_name='loyalty.criteria'inverse_name='rule_id'string='Multi Product Criterias'
-
create(self, vals_list)@api.model_create_multi -
write(self, vals)
Loading…
Loading…