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 19.0 View 20.0
Inputs Method Outputs
  • applies_on
  • program_type
for program in self:
-             program.is_nominative = program.applies_on == 'both' or\
-                 (program.program_type in ('ewallet', 'loyalty') and program.applies_on == 'future')
+             program.is_nominative = program.applies_on == "both" or (
+                 program.program_type in ("ewallet", "loyalty") and program.applies_on == "future"
+             )
  • is_nominative

Back to entity