From ee3f1878392270dab047a0cc1e4bd420a37ffc04 Mon Sep 17 00:00:00 2001 From: Alessandro Uffreduzzi Date: Wed, 28 Dec 2022 11:56:44 +0100 Subject: [PATCH] [IMP] web_widget_datepicker_fulloptions: pre-commit execution --- .../addons/web_widget_datepicker_fulloptions | 1 + .../web_widget_datepicker_fulloptions/setup.py | 6 ++++++ .../__manifest__.py | 5 ++--- .../src/js/web_widget_datepicker_fulloptions.js | 9 +++++---- ...web_widget_datepicker_fulloptions_assets.xml | 17 ++++++++++------- 5 files changed, 24 insertions(+), 14 deletions(-) create mode 120000 setup/web_widget_datepicker_fulloptions/odoo/addons/web_widget_datepicker_fulloptions create mode 100644 setup/web_widget_datepicker_fulloptions/setup.py 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/__manifest__.py b/web_widget_datepicker_fulloptions/__manifest__.py index b65ec703c..003665d96 100644 --- a/web_widget_datepicker_fulloptions/__manifest__.py +++ b/web_widget_datepicker_fulloptions/__manifest__.py @@ -3,12 +3,11 @@ { "name": "Web Widget DatePicker Full Options", "version": "12.0.1.0.1", - "author": "GRAP, " - "Odoo Community Association (OCA)", + "author": "GRAP, " "Odoo Community Association (OCA)", "license": "AGPL-3", "category": "Web", "website": "https://github.com/OCA/web", - 'installable': True, + "installable": True, "depends": [ "web", ], 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 0dc96e52b..46ffe6ff0 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,9 +1,11 @@ /* 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"); var DatePickerFullOptions = DatePicker.DateWidget.include({ /** @@ -17,5 +19,4 @@ odoo.define('web_widget_datepicker_fulloptions.datepicker_fulloptions', function this.options.buttons.showClose = true; }, }); - }); diff --git a/web_widget_datepicker_fulloptions/views/web_widget_datepicker_fulloptions_assets.xml b/web_widget_datepicker_fulloptions/views/web_widget_datepicker_fulloptions_assets.xml index fc5533e4d..a442d5504 100644 --- a/web_widget_datepicker_fulloptions/views/web_widget_datepicker_fulloptions_assets.xml +++ b/web_widget_datepicker_fulloptions/views/web_widget_datepicker_fulloptions_assets.xml @@ -1,12 +1,15 @@ - - + -