mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_widget_datepicker_fulloptions: apply pre-commit auto fixes
This commit is contained in:
@@ -0,0 +1 @@
|
||||
../../../../web_widget_datepicker_fulloptions
|
||||
6
setup/web_widget_datepicker_fulloptions/setup.py
Normal file
6
setup/web_widget_datepicker_fulloptions/setup.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['setuptools-odoo'],
|
||||
odoo_addon=True,
|
||||
)
|
||||
@@ -1,22 +1,23 @@
|
||||
/* Copyright 2021 Quentin DUPONT
|
||||
* License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */
|
||||
odoo.define("web_widget_datepicker_fulloptions.datepicker_fulloptions", function (
|
||||
require
|
||||
) {
|
||||
"use strict";
|
||||
odoo.define(
|
||||
"web_widget_datepicker_fulloptions.datepicker_fulloptions",
|
||||
function (require) {
|
||||
"use strict";
|
||||
|
||||
var DatePicker = require("web.datepicker");
|
||||
var DatePicker = require("web.datepicker");
|
||||
|
||||
DatePicker.DateWidget.include({
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
init: function (parent, options) {
|
||||
this._super(parent, options);
|
||||
this.options.useCurrent = true;
|
||||
this.options.buttons.showToday = true;
|
||||
this.options.buttons.showClear = true;
|
||||
this.options.buttons.showClose = true;
|
||||
},
|
||||
});
|
||||
});
|
||||
DatePicker.DateWidget.include({
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
init: function (parent, options) {
|
||||
this._super(parent, options);
|
||||
this.options.useCurrent = true;
|
||||
this.options.buttons.showToday = true;
|
||||
this.options.buttons.showClear = true;
|
||||
this.options.buttons.showClose = true;
|
||||
},
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user