From b30ce27513fa825eb6ec6fc7102b1d1387489505 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com>
Date: Thu, 11 Jan 2024 11:46:15 +0100
Subject: [PATCH] [ADD] license and copyright everywhere

---
 __init__.py                            |  3 --
 controllers/__init__.py                |  3 --
 controllers/main.py                    |  5 +--
 models/__init__.py                     |  3 --
 models/acc_operation.py                |  5 +--
 static/src/js/canvas.js                |  4 ++
 static/src/js/select2_fr.js            | 55 ++++++++++++++++++++------
 templates/operation_templates_page.xml |  2 +
 templates/portal_layout.xml            |  2 +
 9 files changed, 55 insertions(+), 27 deletions(-)

diff --git a/__init__.py b/__init__.py
index 09e3e28..72d3ea6 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 6b1029b..12a7e52 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 50b4ce2..92888b5 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 7f85e14..c9f67d1 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 ab0413f..82faeb7 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 db7ef67..44712b6 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 2938369..b20c6b3 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 397be66..698c9bb 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 b6c80bb..f4ecd04 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 -->
-- 
GitLab