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_payment_program

View 19.0 View 20.0
Inputs Method Outputs
  • program_type
for program in self:
-             program.is_payment_program = program.program_type in ('gift_card', 'ewallet')
+             program.is_payment_program = program.program_type in ("gift_card", "ewallet")
  • is_payment_program

Back to entity