[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
This commit is contained in:
Thibault Delavallée
2023-08-02 18:50:16 +02:00
parent 7c748bbcbe
commit 792f674c73
+1 -1
View File
@@ -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: