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

Module: Employees

Entity: hr.employee.base

Compute Method: _compute_work_contact_details

View 18.0
Inputs Method Outputs
  • work_contact_id
  • work_contact_id.mobile
  • work_contact_id.email
- for employee in self:
-             if employee.work_contact_id:
-                 employee.mobile_phone = employee.work_contact_id.mobile
-                 employee.work_email = employee.work_contact_id.email
  • mobile_phone
  • work_email

Back to entity