From cf3f722f8b74f50ee45a190be6fcf6aa032f3e4a 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 | 10 +++++----- web_calendar_slot_duration/__manifest__.py | 8 ++++++-- .../i18n/web_calendar_slot_duration.pot | 2 +- .../static/description/index.html | 10 +++++----- .../{calendar_model.js => calendar_model.esm.js} | 2 -- web_calendar_slot_duration/templates/assets.xml | 15 --------------- 6 files changed, 17 insertions(+), 30 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..c061e91c0 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 + :target: https://translation.odoo-community.org/projects/web-15-0/web-15-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/description/index.html b/web_calendar_slot_duration/static/description/index.html index d3f30ed9f..a64955432 100644 --- a/web_calendar_slot_duration/static/description/index.html +++ b/web_calendar_slot_duration/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Production/Stable License: LGPL-3 OCA/web Translate me on Weblate Try me on Runbot

+

Production/Stable License: LGPL-3 OCA/web Translate me on Weblate Try me on Runbot

This module extends the functionality of backend calendars to support custom slot durations and to allow you to provide more specific UX regarding event duration and snapping.

@@ -388,7 +388,7 @@ duration and snapping.

Configuration

This documentation is for developers.

-

If you want to configure your calendar viewΓÇÖs snap duration, make sure that you +

If you want to configure your calendar view’s snap duration, make sure that you action includes a context similar to this (example is the default value):

 {"calendar_slot_duration": "00:30:00"}
@@ -399,7 +399,7 @@ records.

Usage

To use this module, you need to install some other addon that uses it, as it -doesnΓÇÖt provide any end-user functionality.

+doesn’t provide any end-user functionality.

Known issues / Roadmap

@@ -412,7 +412,7 @@ doesnΓÇÖt provide any end-user functionality.

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.

@@ -432,7 +432,7 @@ mission is to support the collaborative development of Odoo features and promote its widespread use.

Current 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/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 @@ - - - - -