TIP: You can type at any time to perform a new search.
Loyalty multi product criteria
loyalty_criteria_multi_product · OCA/sale-promotion
- Repository
- OCA/sale-promotion · module folder · Try on Runboat
- Module version
- 1.0.1
- Category
- Sale
- Folder size
- 0.07 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/sale-promotion
- Last tracking update
- 2026-08-07 08:43:05
- Authors
- Odoo Community Association (OCA), Tecnativa
- Maintainers
- Odoo Community Association (OCA), Tecnativa
- Committers
- Pilar Vargas, OCA-git-bot, oca-ci, Bhavesh Heliconia
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- sale_loyalty_criteria_multi_product
- 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.
Code Analysis ⓘ
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…
- Status
- Open migration PR — not merged yet for this version
- CI status
- checks failing
- Open since
- 574 days ago
- Last activity
- 32 days ago
- Repository
- OCA/sale-promotion
- Pull request
- [17.0][MIG] loyalty_criteria_multi_product: Migration to 17.0 (#240)