diff options
| author | Barad Mahendra <mba@openerp.com> | 2020-10-20 08:22:24 +0000 |
|---|---|---|
| committer | Barad Mahendra <mba@openerp.com> | 2020-10-20 08:22:42 +0000 |
| commit | 200ab9fdaeb9cf6f8afcf572c013e2b6cc1e70df (patch) | |
| tree | a23e22f482403c7737288357eeafab8b41e9b9c4 | |
| parent | 4fb88842f7142a4a8d1ba118b0d5d28d207e1dda (diff) | |
[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) <yti@odoo.com>
| -rw-r--r-- | addons/calendar_sms/views/calendar_views.xml | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ <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> |
