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

Module: CRM

Entity: crm.lead

Compute Method: _compute_mobile

View 18.0
Inputs Method Outputs
  • mobile
  • partner_id
  • partner_id.mobile
- """ compute the new values when partner_id has changed """
- for lead in self:
-             if not lead.mobile or lead.partner_id.mobile:
-                 lead.mobile = lead.partner_id.mobile
  • mobile

Back to entity