直接打开表单视图 window 而不是日历 Odoo 10 上的摘要 window

Direct Open Form view window instead of Summary window on Calendar Odoo 10

我想在日历的摘要 window 上打开直接表单视图。那么,如何在点击日历视图时打开直接窗体视图呢?

我使用web_calendar模块(widgets.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})
    });

我在 Odoo 11 上,要从日历直接转到没有摘要的表单视图 window,我唯一要做的就是设置属性 quick_add="False" xml 日历标签。我可以想象这也适用于早期的 Odoo 版本,但不知道。

<field name="arch" type="xml">
    <calendar ... quick_add="False">
        <field name="name"/>
    </calendar>
</field>