summaryrefslogtreecommitdiff
path: root/addons/project/static/src/js/project_calendar.js
blob: 51b3488ee20f755dabb073836b756b413ef6cd8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
odoo.define('project.ProjectCalendarView', function (require) {
"use strict";

const CalendarController = require('web.CalendarController');
const CalendarView = require('web.CalendarView');
const viewRegistry = require('web.view_registry');

const ProjectCalendarController = CalendarController.extend({
    _renderButtonsParameters() {
        return _.extend({}, this._super(...arguments),  {scaleDrop: true});
    },
});

const ProjectCalendarView = CalendarView.extend({
        config: _.extend({}, CalendarView.prototype.config, {
            Controller: ProjectCalendarController,
        }),
    });

viewRegistry.add('project_calendar', ProjectCalendarView);
return ProjectCalendarView;
});