3
0
Fork 0

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
Martronic SA 2021-09-23 09:28:57 +02:00 committed by Olga Marco
parent f43d3c6cdd
commit 4799e16289
1 changed files with 3 additions and 2 deletions

View File

@ -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,