forked from Techsystech/web
Update calendar_list_view.js
Add viewType attribute otherwise it can break the default calendar and doesn't select the correct view button.15.0-ocabot-merge-pr-2789-by-pedrobaeza-bump-patch
parent
f43d3c6cdd
commit
4799e16289
|
@ -1,6 +1,7 @@
|
|||
odoo.define("web_view_calendar_list.CalendarListView", function (require) {
|
||||
"use strict";
|
||||
|
||||
var AbstractView = require("web.AbstractView");
|
||||
var CalendarView = require("web.CalendarView");
|
||||
var core = require("web.core");
|
||||
var CalendarListController = require("web_view_calendar_list.CalendarListController");
|
||||
|
@ -19,8 +20,8 @@ odoo.define("web_view_calendar_list.CalendarListView", function (require) {
|
|||
var CalendarListView = CalendarView.extend({
|
||||
display_name: _lt("Calendar List"),
|
||||
icon: "fa-calendar-check-o",
|
||||
viewType: 'calendar_list',
|
||||
config: _.extend(CalendarView.prototype.config, {
|
||||
viewType: "calendar_list",
|
||||
config: _.extend(AbstractView.prototype.config, {
|
||||
Model: CalendarListModel,
|
||||
Controller: CalendarListController,
|
||||
Renderer: CalendarListRenderer,
|
||||
|
|
Loading…
Reference in New Issue