summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorRemi Rahir <rar@odoo.com>2019-07-22 08:53:49 +0000
committerThibault Delavallée <tde@odoo.com>2019-07-23 08:29:15 +0000
commite20c1b6eff1cef0e751eeebacc0bf17b85aa1283 (patch)
tree2fe2268fa1b3524f4ced9d8136546cd4998c3875 /addons
parent0cc6390db5e759bfbfbbf2272f342eba391926fa (diff)
[FIX] sms: fix some typos
PURPOSE Followup of merge 4287481 . SPECIFICATIONS Notification type is now a selection -> use 'sms' instead of True; Fix typo in method renaming not correctly propagated to its view; LINKS Task 1922187
Diffstat (limited to 'addons')
-rw-r--r--addons/sms/models/mail_message.py2
-rw-r--r--addons/sms/wizard/sms_cancel_views.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/sms/models/mail_message.py b/addons/sms/models/mail_message.py
index ce76aa5349b..3f97b8abcb0 100644
--- a/addons/sms/models/mail_message.py
+++ b/addons/sms/models/mail_message.py
@@ -29,7 +29,7 @@ class MailMessage(models.Model):
def _search_has_sms_error(self, operator, operand):
if operator == '=' and operand:
- return ['&', ('notification_ids.notification_status', '=', 'exception'), ('notification_ids.notification_type', '=', True)]
+ return ['&', ('notification_ids.notification_status', '=', 'exception'), ('notification_ids.notification_type', '=', 'sms')]
raise NotImplementedError()
def _format_mail_failures(self):
diff --git a/addons/sms/wizard/sms_cancel_views.xml b/addons/sms/wizard/sms_cancel_views.xml
index 74208e5fd4c..f672a80db64 100644
--- a/addons/sms/wizard/sms_cancel_views.xml
+++ b/addons/sms/wizard/sms_cancel_views.xml
@@ -10,7 +10,7 @@
<field name="help_message"/>
<p>If you want to re-send them, click Cancel now, then click on the notification and review them one by one by clicking on the red icon next to each message.</p>
<footer>
- <button string="Discard delivery failures" name="cancel_resend_action" type="object" class="btn-primary" />
+ <button string="Discard delivery failures" name="action_cancel" type="object" class="btn-primary" />
<button string="Cancel" class="btn-secondary" special="cancel" />
</footer>
</form>