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

Module: Phone Numbers Validation

Entity: mail.thread.phone

Compute Method: _compute_phone_sanitized

Inputs Method Outputs
self._assert_phone_field()
number_fields = self._phone_get_number_fields()
for record in self:
            for fname in number_fields:
                sanitized = record._phone_format(fname=fname)
                if sanitized:
                    break
            record.phone_sanitized = sanitized

Back to entity