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 IDNameModelTypeStatus
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_ids Many2many → product.product
    comodel_name='product.product' required=True
  • rule_id Many2one → loyalty.rule
    comodel_name='loyalty.rule'
  • rule_min_quantity Integer
    compute='_compute_rule_min_quantity' help='Minimum required product quantity to get the reward' readonly=True store=True string='Min. Quantity'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • loyalty_criteria Selection
    default='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_ids One2many → loyalty.criteria
    comodel_name='loyalty.criteria' inverse_name='rule_id' string='Multi Product Criterias'
Public methods (2)
  • 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)