From 200ab9fdaeb9cf6f8afcf572c013e2b6cc1e70df Mon Sep 17 00:00:00 2001 From: Barad Mahendra Date: Tue, 20 Oct 2020 08:22:24 +0000 Subject: [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#60330 Taskid: 2344284 Signed-off-by: Yannick Tivisse (yti) --- addons/calendar_sms/views/calendar_views.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'addons/calendar_sms') diff --git a/addons/calendar_sms/views/calendar_views.xml b/addons/calendar_sms/views/calendar_views.xml index b7c5018e7ef..3a6e1866fb8 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, } -- cgit v1.2.3