[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
This commit is contained in:
Rémy Voet
2019-09-25 17:43:42 +00:00
committed by Thibault Delavallée
parent 859428ef7f
commit 8636fd8313
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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