Skip to content
Snippets Groups Projects
Commit 200ab9fd authored by Mahendra Barad's avatar Mahendra Barad
Browse files

[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: default avatarYannick Tivisse (yti) <yti@odoo.com>
parent 4fb88842
Branches
Tags
No related merge requests found
......@@ -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>
<field name="binding_model_id" ref="model_calendar_event"/>
</record>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment