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

Entity: event.booth

Compute Method: _compute_contact_phone

View 17.0 View 20.0
Inputs Method Outputs
  • contact_phone
  • partner_id
  • partner_id.phone
  • partner_id.mobile
for booth in self:
            if not booth.contact_phone:
-                 booth.contact_phone = booth.partner_id.phone or booth.partner_id.mobile or False
+                 booth.contact_phone = booth.partner_id.phone or False
  • contact_phone

Back to entity