From 08ee2fef7ec7e31380b65cd89adb397d7b48c1d1 Mon Sep 17 00:00:00 2001 From: Christopher Rogos Date: Wed, 13 Jul 2022 21:32:10 +0200 Subject: [PATCH] [MIG] web_calendar_slot_duration: Migration to 15.0 --- web_calendar_slot_duration/README.rst | 8 ++++---- web_calendar_slot_duration/__manifest__.py | 8 ++++++-- .../i18n/web_calendar_slot_duration.pot | 2 +- .../{calendar_model.js => calendar_model.esm.js} | 2 -- web_calendar_slot_duration/templates/assets.xml | 15 --------------- 5 files changed, 11 insertions(+), 24 deletions(-) rename web_calendar_slot_duration/static/src/js/{calendar_model.js => calendar_model.esm.js} (97%) delete mode 100644 web_calendar_slot_duration/templates/assets.xml diff --git a/web_calendar_slot_duration/README.rst b/web_calendar_slot_duration/README.rst index 80cd3e83b..5d92c5075 100644 --- a/web_calendar_slot_duration/README.rst +++ b/web_calendar_slot_duration/README.rst @@ -14,13 +14,13 @@ Calendar slot duration :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github - :target: https://github.com/OCA/web/tree/14.0/web_calendar_slot_duration + :target: https://github.com/OCA/web/tree/15.0/web_calendar_slot_duration :alt: OCA/web .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png :target: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_calendar_slot_duration :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/162/14.0 + :target: https://runbot.odoo-community.org/runbot/162/15.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -64,7 +64,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -97,6 +97,6 @@ Current `maintainer `__: |maintainer-Yajo| -This module is part of the `OCA/web `_ project on GitHub. +This module is part of the `OCA/web `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/web_calendar_slot_duration/__manifest__.py b/web_calendar_slot_duration/__manifest__.py index f1cf996d4..56a0189a5 100644 --- a/web_calendar_slot_duration/__manifest__.py +++ b/web_calendar_slot_duration/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Calendar slot duration", "summary": "Customizable calendar slot durations", - "version": "14.0.1.0.0", + "version": "15.0.1.0.0", "development_status": "Production/Stable", "category": "Extra Tools", "website": "https://github.com/OCA/web", @@ -12,6 +12,10 @@ "license": "LGPL-3", "application": False, "installable": True, + "assets": { + "web.assets_backend": [ + "web_calendar_slot_duration/static/src/js/calendar_model.esm.js" + ] + }, "depends": ["web"], - "data": ["templates/assets.xml"], } diff --git a/web_calendar_slot_duration/i18n/web_calendar_slot_duration.pot b/web_calendar_slot_duration/i18n/web_calendar_slot_duration.pot index 4d8b20f91..a11baf5cd 100644 --- a/web_calendar_slot_duration/i18n/web_calendar_slot_duration.pot +++ b/web_calendar_slot_duration/i18n/web_calendar_slot_duration.pot @@ -3,7 +3,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" diff --git a/web_calendar_slot_duration/static/src/js/calendar_model.js b/web_calendar_slot_duration/static/src/js/calendar_model.esm.js similarity index 97% rename from web_calendar_slot_duration/static/src/js/calendar_model.js rename to web_calendar_slot_duration/static/src/js/calendar_model.esm.js index e4fd434a3..839fc5a3f 100644 --- a/web_calendar_slot_duration/static/src/js/calendar_model.js +++ b/web_calendar_slot_duration/static/src/js/calendar_model.esm.js @@ -2,8 +2,6 @@ * License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). */ odoo.define("web_calendar_slot_duration.CalendarModel", function (require) { - "use strict"; - var CalendarModel = require("web.CalendarModel"); CalendarModel.include({ diff --git a/web_calendar_slot_duration/templates/assets.xml b/web_calendar_slot_duration/templates/assets.xml deleted file mode 100644 index e68c17fc2..000000000 --- a/web_calendar_slot_duration/templates/assets.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - -