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

Module: Mail Tests (Full)

Entity: mail.test.rating

Compute Method: _compute_mobile_nbr

View 17.0
Inputs Method Outputs
  • customer_id
  • customer_id.mobile
  • mobile_nbr
- for rating in self:
-             if rating.customer_id.mobile:
-                 rating.mobile_nbr = rating.customer_id.mobile
-             elif not rating.mobile_nbr:
-                 rating.mobile_nbr = False
  • mobile_nbr

Back to entity