summaryrefslogtreecommitdiff
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
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
-rw-r--r--addons/sms/static/src/scss/thread.scss2
-rw-r--r--addons/sms/wizard/sms_composer.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/sms/static/src/scss/thread.scss b/addons/sms/static/src/scss/thread.scss
index ba4e54386c7..4d7d653eb02 100644
--- a/addons/sms/static/src/scss/thread.scss
+++ b/addons/sms/static/src/scss/thread.scss
@@ -1,4 +1,4 @@
-i.o_thread_message_sms.o_thread_message_sms_error {
+.o_thread_message_sms.o_thread_message_sms_error {
color: red;
opacity: 1;
cursor: pointer;
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