From d5c1cec0b1dccee2b8be25e823195b4bf3cbf6b8 Mon Sep 17 00:00:00 2001 From: Barad Mahendra Date: Tue, 20 Oct 2020 08:22:24 +0000 Subject: [PATCH] [FIX] calendar_sms: Fix traceback on 'send SMS to attendee' Currently, when go to calendar > list view > action > send sms to attendees, it will generate the the traceback because default composition_mode is comment while when you process through the list then sms_composition mode should be 'mass'. So in this commit, pass the sms_composition_mode as 'guess' so it will automatically check the record and take the correct composition mode and also pass the active_ids as res_ids. closes odoo/odoo#61909 Taskid: 2344284 X-original-commit: 200ab9fdaeb9cf6f8afcf572c013e2b6cc1e70df Signed-off-by: Yannick Tivisse (yti) --- addons/calendar_sms/views/calendar_views.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/calendar_sms/views/calendar_views.xml b/addons/calendar_sms/views/calendar_views.xml index 469e695b485..d1c13e964d3 100644 --- a/addons/calendar_sms/views/calendar_views.xml +++ b/addons/calendar_sms/views/calendar_views.xml @@ -8,8 +8,9 @@ form new { - 'default_composition_mode': 'comment', + 'sms_composition_mode': 'guess', 'default_res_id': active_id, + 'default_res_ids': active_ids, }