diff --git a/__init__.py b/__init__.py index 09e3e281668811c8eceb7cac01be08eca041af22..72d3ea60a8cf7cd1d26a4066c05e6817315bce8b 100644 --- a/__init__.py +++ b/__init__.py @@ -1,4 +1 @@ -# Copyright 2023 Le Filament (https://le-filament.com) -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) - from . import controllers, models diff --git a/controllers/__init__.py b/controllers/__init__.py index 6b1029b1764bcd1020285c8e4ce7535f53de9daf..12a7e529b674164f0ad189b131c5d5c8fb9ae0bc 100644 --- a/controllers/__init__.py +++ b/controllers/__init__.py @@ -1,4 +1 @@ -# Copyright 2023 Le Filament (<http://www.le-filament.com>) -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - from . import main diff --git a/controllers/main.py b/controllers/main.py index 50b4ce2170eee0bf68c5360dcd8dd074c58fb4f7..92888b551b96abbaac48b9dd51e1d70d941e28a4 100644 --- a/controllers/main.py +++ b/controllers/main.py @@ -1,6 +1,5 @@ -# Copyright 2023 Le Filament (<http://www.le-filament.com>) -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - +# Copyright 2021- Le Filament (https://le-filament.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) from odoo import http from odoo.http import request diff --git a/models/__init__.py b/models/__init__.py index 7f85e14a61f2d97e84a021bbdd170a2ee341f8d9..c9f67d1029451187faac73b30248b565bd1340d9 100644 --- a/models/__init__.py +++ b/models/__init__.py @@ -1,4 +1 @@ -# Copyright 2023 Le Filament (https://le-filament.com) -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) - from . import acc_operation diff --git a/models/acc_operation.py b/models/acc_operation.py index ab0413f3101cdcf0879ce7f7ce54ce07c4346e4c..82faeb742c82a316e8c94a842db518350d6bb45a 100644 --- a/models/acc_operation.py +++ b/models/acc_operation.py @@ -1,6 +1,5 @@ -# Copyright 2023 Le Filament (<http://www.le-filament.com>) -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - +# Copyright 2021- Le Filament (https://le-filament.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) from odoo import models diff --git a/static/src/js/canvas.js b/static/src/js/canvas.js index db7ef67ff2a8976fae7fac5ff611b41e540b5241..44712b66f2d62813ddd045c98f297eb452817811 100644 --- a/static/src/js/canvas.js +++ b/static/src/js/canvas.js @@ -1,3 +1,7 @@ +/** + * @copyright: 2023- Le Filament (<https://le-filament.com>) + * @license: AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + */ odoo.define("oacc_portal_overview_cdc.canvas", function (require) { "use strict"; diff --git a/static/src/js/select2_fr.js b/static/src/js/select2_fr.js index 293836952716c76cca35df4f8f02e60627c57260..b20c6b345447ff959e8da11dd19b555fcea9526b 100644 --- a/static/src/js/select2_fr.js +++ b/static/src/js/select2_fr.js @@ -1,21 +1,52 @@ /** * Select2 French translation - * From https://raw.githubusercontent.com/select2/select2/stable/3.5/select2_locale_fr.js - * Copyright 2015 Igor Vaynberg - * License Apache License, Version 2.0 + * @source https://raw.githubusercontent.com/select2/select2/stable/3.5/select2_locale_fr.js + * @copyright 2015 Igor Vaynberg + * @license Apache License, Version 2.0 */ (function ($) { "use strict"; - $.fn.select2.locales['fr'] = { - formatMatches: function (matches) { return matches + " résultats sont disponibles, utilisez les flèches haut et bas pour naviguer."; }, - formatNoMatches: function () { return "Aucun résultat trouvé"; }, - formatInputTooShort: function (input, min) { var n = min - input.length; return "Saisissez " + n + " caractère" + (n == 1? "" : "s") + " supplémentaire" + (n == 1? "" : "s") ; }, - formatInputTooLong: function (input, max) { var n = input.length - max; return "Supprimez " + n + " caractère" + (n == 1? "" : "s"); }, - formatSelectionTooBig: function (limit) { return "Vous pouvez seulement sélectionner " + limit + " élément" + (limit == 1 ? "" : "s"); }, - formatLoadMore: function (pageNumber) { return "Chargement de résultats supplémentaires…"; }, - formatSearching: function () { return "Recherche en cours…"; } + $.fn.select2.locales.fr = { + formatMatches: function (matches) { + return ( + matches + + " résultats sont disponibles, utilisez les flèches haut et bas pour naviguer." + ); + }, + formatNoMatches: function () { + return "Aucun résultat trouvé"; + }, + formatInputTooShort: function (input, min) { + var n = min - input.length; + return ( + "Saisissez " + + n + + " caractère" + + (n == 1 ? "" : "s") + + " supplémentaire" + + (n == 1 ? "" : "s") + ); + }, + formatInputTooLong: function (input, max) { + var n = input.length - max; + return "Supprimez " + n + " caractère" + (n == 1 ? "" : "s"); + }, + formatSelectionTooBig: function (limit) { + return ( + "Vous pouvez seulement sélectionner " + + limit + + " élément" + + (limit == 1 ? "" : "s") + ); + }, + formatLoadMore: function (pageNumber) { + return "Chargement de résultats supplémentaires…"; + }, + formatSearching: function () { + return "Recherche en cours…"; + }, }; - $.extend($.fn.select2.defaults, $.fn.select2.locales['fr']); + $.extend($.fn.select2.defaults, $.fn.select2.locales.fr); })(jQuery); diff --git a/templates/operation_templates_page.xml b/templates/operation_templates_page.xml index 397be668d72cb659a59b929468700ba752291e28..698c9bb7525e4c8765f9756faaa6ac3a6b3507eb 100644 --- a/templates/operation_templates_page.xml +++ b/templates/operation_templates_page.xml @@ -1,4 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> +<!-- Copyright 2021- Le Filament (https://le-filament.com) + License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> <odoo> <!-- Operation PMO template --> diff --git a/templates/portal_layout.xml b/templates/portal_layout.xml index b6c80bbd834ce84f82bfe7627dace1115f5781f5..f4ecd043d6a043979626c35002af409542683024 100644 --- a/templates/portal_layout.xml +++ b/templates/portal_layout.xml @@ -1,4 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> +<!-- Copyright 2021- Le Filament (https://le-filament.com) + License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> <odoo> <!-- Layout operation -->