[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) <yti@odoo.com>
This commit is contained in:
Barad Mahendra
2020-11-17 23:40:30 +00:00
parent a2b4609224
commit d5c1cec0b1
+2 -1
View File
@@ -8,8 +8,9 @@
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="context">{
'default_composition_mode': 'comment',
'sms_composition_mode': 'guess',
'default_res_id': active_id,
'default_res_ids': active_ids,
}</field>
</record>