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

Module: Events Product

Entity: event.registration

Compute Method: _compute_registration_status

View 19.0
Inputs Method Outputs
  • sale_status
  • state
+ if not self._has_order():
+             for reg in self:
+                 if not reg.sale_status:
+                     reg.sale_status = 'free'
+                 if not reg.state:
+                     reg.state = 'open'
  • sale_status
  • state

Back to entity