Skip to content
Health
72/100
fair
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 7 months ago
  • Required by15/25
    1 module depends on it
  • Maturity12/25
    In 2 Odoo series since 16.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
sale_loyalty_criteria_multi_product

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…

Loading…