summaryrefslogtreecommitdiff
path: root/addons/sms/wizard
diff options
context:
space:
mode:
authorRémy Voet <ryv@odoo.com>2019-09-25 13:09:55 +0000
committerThibault Delavallée <tde@odoo.com>2019-09-25 17:43:42 +0000
commit8636fd8313fe2b6a12e0c456cffee4bdfa227289 (patch)
tree5569e7b6791644395e66aed129ad03953e703abc /addons/sms/wizard
parent859428ef7fd52eddeb0ba668dce60dd70db8028e (diff)
[FIX] sms: fix some usability issues
- In the portal chatter, when a message was send by sms and failed the icon was grey. Change it to make it red when there is a failure (revert by another task). - In the sms composer wizard, if the sanitized number is wrong, show 'Raoul Grosbedon (Invalid number)' instead of 'Raoul Grosbedon (False)'. Task 2075733
Diffstat (limited to 'addons/sms/wizard')
-rw-r--r--addons/sms/wizard/sms_composer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/sms/wizard/sms_composer.py b/addons/sms/wizard/sms_composer.py
index 841ef609597..8c2db1eb7f0 100644
--- a/addons/sms/wizard/sms_composer.py
+++ b/addons/sms/wizard/sms_composer.py
@@ -111,7 +111,7 @@ class SendSMS(models.TransientModel):
if len(records) == 1:
self.recipient_description = '%s (%s)' % (
res[records.id]['partner'].name or records.display_name,
- res[records.id]['sanitized']
+ res[records.id]['sanitized'] or _("Invalid number")
)
else:
self.recipient_invalid_count = 0 if (self.sanitized_numbers or (self.composition_mode == 'mass' and self.use_active_domain)) else 1