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

Module: Events Organization

Entity: event.registration

Compute Method: _compute_phone

View 18.0 View 20.0
Inputs Method Outputs
  • phone
  • partner_id
for registration in self:
            if not registration.phone and registration.partner_id:
                partner_values = registration._synchronize_partner_values(
                    registration.partner_id,
-                     fnames={'phone', 'mobile'},
+                     fnames={'phone'},
                )
-                 registration.phone = partner_values.get('phone') or partner_values.get('mobile') or False
+                 registration.phone = partner_values.get('phone') or False
  • phone

Back to entity