[IMP] web_calendar_slot_duration: black, isort, prettier

pull/2119/head
Víctor Martínez 2022-01-05 09:13:30 +01:00
parent 68a74840f2
commit a7997914a9
3 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1 @@
../../../../web_calendar_slot_duration

View File

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

View File

@ -1,7 +1,7 @@
/* Copyright 2021 Tecnativa - Jairo Llopis /* Copyright 2021 Tecnativa - Jairo Llopis
* License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). */ * License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). */
odoo.define("web_calendar_slot_duration.CalendarModel", function(require) { odoo.define("web_calendar_slot_duration.CalendarModel", function (require) {
"use strict"; "use strict";
var CalendarModel = require("web.CalendarModel"); var CalendarModel = require("web.CalendarModel");
@ -10,7 +10,7 @@ odoo.define("web_calendar_slot_duration.CalendarModel", function(require) {
/** /**
* @override * @override
*/ */
_getFullCalendarOptions: function() { _getFullCalendarOptions: function () {
var result = this._super.call(this, arguments); var result = this._super.call(this, arguments);
result.slotDuration = result.slotDuration =
this.data.context.calendar_slot_duration || this.data.context.calendar_slot_duration ||