diff --git a/setup/web_widget_datepicker_fulloptions/odoo/addons/web_widget_datepicker_fulloptions b/setup/web_widget_datepicker_fulloptions/odoo/addons/web_widget_datepicker_fulloptions new file mode 120000 index 000000000..83d8cdadd --- /dev/null +++ b/setup/web_widget_datepicker_fulloptions/odoo/addons/web_widget_datepicker_fulloptions @@ -0,0 +1 @@ +../../../../web_widget_datepicker_fulloptions \ No newline at end of file diff --git a/setup/web_widget_datepicker_fulloptions/setup.py b/setup/web_widget_datepicker_fulloptions/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/web_widget_datepicker_fulloptions/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/web_widget_datepicker_fulloptions/static/src/js/web_widget_datepicker_fulloptions.js b/web_widget_datepicker_fulloptions/static/src/js/web_widget_datepicker_fulloptions.js index d9ff3d4b6..d79ebb413 100644 --- a/web_widget_datepicker_fulloptions/static/src/js/web_widget_datepicker_fulloptions.js +++ b/web_widget_datepicker_fulloptions/static/src/js/web_widget_datepicker_fulloptions.js @@ -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; + }, + }); + } +);