3
0
Fork 0

[IMP] web_widget_datepicker_fulloptions: apply pre-commit auto fixes

16.0
Quentin Dupont 2024-02-02 13:45:36 +01:00
parent 4f7b62bf85
commit c4c9d5dfcd
3 changed files with 26 additions and 18 deletions

View File

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

View File

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

View File

@ -1,22 +1,23 @@
/* Copyright 2021 Quentin DUPONT /* Copyright 2021 Quentin DUPONT
* License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */ * License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */
odoo.define("web_widget_datepicker_fulloptions.datepicker_fulloptions", function ( odoo.define(
require "web_widget_datepicker_fulloptions.datepicker_fulloptions",
) { function (require) {
"use strict"; "use strict";
var DatePicker = require("web.datepicker"); var DatePicker = require("web.datepicker");
DatePicker.DateWidget.include({ DatePicker.DateWidget.include({
/** /**
* @override * @override
*/ */
init: function (parent, options) { init: function (parent, options) {
this._super(parent, options); this._super(parent, options);
this.options.useCurrent = true; this.options.useCurrent = true;
this.options.buttons.showToday = true; this.options.buttons.showToday = true;
this.options.buttons.showClear = true; this.options.buttons.showClear = true;
this.options.buttons.showClose = true; this.options.buttons.showClose = true;
}, },
}); });
}); }
);