summaryrefslogtreecommitdiff
path: root/addons/sms/wizard/send_sms.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/sms/wizard/send_sms.py')
-rw-r--r--addons/sms/wizard/send_sms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/sms/wizard/send_sms.py b/addons/sms/wizard/send_sms.py
index 844933d092a..139f542e597 100644
--- a/addons/sms/wizard/send_sms.py
+++ b/addons/sms/wizard/send_sms.py
@@ -35,7 +35,7 @@ class SendSMS(models.TransientModel):
def _sms_sanitization(self, partner, field_name):
number = partner[field_name]
- if _sms_phonenumbers_lib_imported:
+ if number and _sms_phonenumbers_lib_imported:
country = self._phone_get_country(partner)
country_code = country.code if country else None
try: