I Want to open direct form view instead on Summary window on calendar. So, how to open direct form view when click on calendar view? For this i work on web_calendar module widgets.js file. I find following code but i didn't get upto result because i rarely use js:
var self = this;
this._super(parent, {
title: this.get_title(),
size: 'small',
buttons: this._buttons ? [
{text: _t("Create"), classes: 'btn-primary', click: function () {
if (!self.quick_add()) {
self.focus();
}
}},
{text: _t("Edit"), click: function () {
self.slow_add();
}},
{text: _t("Cancel"), close: true},
] : [],
$content: QWeb.render('CalendarView.quick_create', {widged: this})
});
Thanks in Advance.