Skip to content
Snippets Groups Projects
Commit f7a17c23 authored by Thibault Delavallée's avatar Thibault Delavallée
Browse files

[FIX] sms: correctly take mobile or phone as valid number fields for partners


Partner / Contact model may hold valid mobile numbers in mobile or phone
fields.

LINKS

Task 1997464

closes odoo/odoo#35599

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 2f755342
No related branches found
No related tags found
No related merge requests found
......@@ -12,3 +12,8 @@ class ResPartner(models.Model):
SMS recipients on partners are the partners themselves.
"""
return self
def _sms_get_number_fields(self):
""" This method returns the fields to use to find the number to use to
send an SMS on a record. """
return ['mobile', 'phone']
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment