From 86adba1599cc8bb0fc9ac06b320f9cdc5b77c451 Mon Sep 17 00:00:00 2001 From: Pierre Rousseau Date: Wed, 24 Jan 2018 11:14:54 +0100 Subject: [PATCH] [FIX] sms: send sms in list view --- addons/sms/wizard/send_sms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: