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_portal_point_name

View 18.0 View 20.0
Inputs Method Outputs
  • program_type
  • currency_id
  • currency_id.symbol
for program in self:
-             if program.program_type not in ('ewallet', 'gift_card'):
+             if program.program_type not in ("ewallet", "gift_card"):
                continue
-             program.portal_point_name = program.currency_id.symbol or ''
+             program.portal_point_name = program.currency_id.symbol or ""
  • portal_point_name

Back to entity