From 792f674c732adc3ed4d3c66961a42e561fc5b95f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 2 Aug 2023 12:42:14 +0000 Subject: [PATCH] [FIX] calendar_sms: fix trigger for sms template Probably due to a copy paste, _compute_sms_template_id on sms_template_id field of alarm model is not correctly called. It refers to the mail template instead of the sms one. Task-3422449 (Mail, Phone: Move and improve field helpers) Part-of: odoo/odoo#130468 --- addons/calendar_sms/models/calendar_alarm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/calendar_sms/models/calendar_alarm.py b/addons/calendar_sms/models/calendar_alarm.py index d2211dd2326..b4ddd855540 100644 --- a/addons/calendar_sms/models/calendar_alarm.py +++ b/addons/calendar_sms/models/calendar_alarm.py @@ -17,7 +17,7 @@ class CalendarAlarm(models.Model): help="Template used to render SMS reminder content.") sms_notify_responsible = fields.Boolean("Notify Responsible") - @api.depends('alarm_type', 'mail_template_id') + @api.depends('alarm_type', 'sms_template_id') def _compute_sms_template_id(self): for alarm in self: if alarm.alarm_type == 'sms' and not alarm.sms_template_id: