forked from Techsystech/web
[IMP] web_widget_datepicker_fulloptions: apply pre-commit auto fixes
parent
4f7b62bf85
commit
c4c9d5dfcd
|
@ -0,0 +1 @@
|
||||||
|
../../../../web_widget_datepicker_fulloptions
|
|
@ -0,0 +1,6 @@
|
||||||
|
import setuptools
|
||||||
|
|
||||||
|
setuptools.setup(
|
||||||
|
setup_requires=['setuptools-odoo'],
|
||||||
|
odoo_addon=True,
|
||||||
|
)
|
|
@ -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;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
Loading…
Reference in New Issue