Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Coupons & Loyalty

Entity: loyalty.program

Compute Method: _compute_is_nominative

View 17.0 View 18.0
Inputs Method Outputs
  • applies_on
  • program_type
for program in self:
            program.is_nominative = program.applies_on == 'both' or\
-                 (program.program_type == 'ewallet' and program.applies_on == 'future')
+                 (program.program_type in ('ewallet', 'loyalty') and program.applies_on == 'future')
  • is_nominative

Back to entity