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
| Inputs | Method | Outputs |
|---|---|---|
|
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
|
|
