[FIX] calendar: title undefined when double clicking event

Currently in calendar if you double click an event in the calendar view, it
opens a dialog with the event title as undefined. This occurs, because the
title is not correctly passed in the context. This commit adds the correct
title to it, therefore fixing the error.

task-2685472

Part-of: odoo/odoo#79654
This commit is contained in:
Leonardo Pavan Rocha
2022-04-01 10:36:09 +02:00
parent e2d90dee10
commit 7373cdfdcf
@@ -524,7 +524,10 @@ return AbstractRenderer.extend({
// On double click, edit the event
element.on('dblclick', function () {
self.trigger_up('edit_event', {id: event.id});
self.trigger_up('edit_event', {
id: event.id,
title: event.extendedProps.record.display_name
});
});
}
},