mirror of https://github.com/OCA/web.git
Update calendar_list_view.js
Add viewType attribute otherwise it can break the default calendar and doesn't select the correct view button.pull/2121/head
parent
1cd03c3039
commit
52228a1aee
|
@ -1,6 +1,7 @@
|
||||||
odoo.define("web_view_calendar_list.CalendarListView", function (require) {
|
odoo.define("web_view_calendar_list.CalendarListView", function (require) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
var AbstractView = require("web.AbstractView");
|
||||||
var CalendarView = require("web.CalendarView");
|
var CalendarView = require("web.CalendarView");
|
||||||
var core = require("web.core");
|
var core = require("web.core");
|
||||||
var CalendarListController = require("web_view_calendar_list.CalendarListController");
|
var CalendarListController = require("web_view_calendar_list.CalendarListController");
|
||||||
|
@ -19,7 +20,8 @@ odoo.define("web_view_calendar_list.CalendarListView", function (require) {
|
||||||
var CalendarListView = CalendarView.extend({
|
var CalendarListView = CalendarView.extend({
|
||||||
display_name: _lt("Calendar List"),
|
display_name: _lt("Calendar List"),
|
||||||
icon: "fa-calendar-check-o",
|
icon: "fa-calendar-check-o",
|
||||||
config: _.extend(CalendarView.prototype.config, {
|
viewType: "calendar_list",
|
||||||
|
config: _.extend(AbstractView.prototype.config, {
|
||||||
Model: CalendarListModel,
|
Model: CalendarListModel,
|
||||||
Controller: CalendarListController,
|
Controller: CalendarListController,
|
||||||
Renderer: CalendarListRenderer,
|
Renderer: CalendarListRenderer,
|
||||||
|
|
Loading…
Reference in New Issue