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

Module: Events Booths Sales

Entity: event.booth.registration

Compute Method: _compute_contact_phone

View 18.0 View 19.0
Inputs Method Outputs
  • contact_phone
  • partner_id
  • partner_id.phone
  • partner_id.mobile
for registration in self:
            if not registration.contact_phone:
-                 registration.contact_phone = registration.partner_id.phone or registration.partner_id.mobile or False
+                 registration.contact_phone = registration.partner_id.phone or False
  • contact_phone

Back to entity