diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 50f27d174637774b3a1b870abf1eacda6f6ca79f_LmdpdGxhYi1jaS55bWw=..ed97d0d6c4ce97428d9ed37088335ae85b57e72f_LmdpdGxhYi1jaS55bWw= 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,3 @@ include: - project: xcg/ci-templates - file: /odoo/13.0/gitlab-ci.yaml + file: /odoo/11.0/gitlab-ci.yaml diff --git a/NEWS.rst b/NEWS.rst index 50f27d174637774b3a1b870abf1eacda6f6ca79f_TkVXUy5yc3Q=..ed97d0d6c4ce97428d9ed37088335ae85b57e72f_TkVXUy5yc3Q= 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -2,6 +2,6 @@ Changelog ========= -13.0.1.0.0 +11.0.1.0.0 ---------- @@ -6,3 +6,3 @@ ---------- -Initial version. +Port to Odoo 11.0 - TG-1249. diff --git a/README.rst b/README.rst index 50f27d174637774b3a1b870abf1eacda6f6ca79f_UkVBRE1FLnJzdA==..ed97d0d6c4ce97428d9ed37088335ae85b57e72f_UkVBRE1FLnJzdA== 100644 --- a/README.rst +++ b/README.rst @@ -3,7 +3,7 @@ ======= .. |coverage| image:: .badges/coverage.svg - :target: https://orus.io/xcg/odoo-modules/version/-/pipelines?ref=branch/13.0 + :target: https://orus.io/xcg/odoo-modules/version/-/pipelines?ref=branch/11.0 :alt: Coverage report .. the image is updated by the CI when building the documentation .. |pylint| image:: .badges/pylint.svg @@ -7,7 +7,7 @@ :alt: Coverage report .. the image is updated by the CI when building the documentation .. |pylint| image:: .badges/pylint.svg - :target: https://orus.io/xcg/odoo-modules/version/-/pipelines?ref=branch/13.0 + :target: https://orus.io/xcg/odoo-modules/version/-/pipelines?ref=branch/11.0 :alt: pylint score .. |maturity| image:: .badges/maturity.svg :target: https://odoo-community.org/page/development-status @@ -26,4 +26,4 @@ This module display a version number on all pages. -Reuse AGPL-3 code from `smile_upgrade <https://github.com/Smile-SA/odoo_addons/tree/13.0/smile_upgrade>`_ and inspired by `camptocamp_tools <https://github.com/camptocamp/odoo-tools/blob/15.0/camptocamp_tools/controllers/camptocamp_version.py>`_. +Reuse AGPL-3 code from `smile_upgrade <https://github.com/Smile-SA/odoo_addons/tree/11.0/smile_upgrade>`_ and inspired by `camptocamp_tools <https://github.com/camptocamp/odoo-tools/blob/15.0/camptocamp_tools/controllers/camptocamp_version.py>`_. diff --git a/__manifest__.py b/__manifest__.py index 50f27d174637774b3a1b870abf1eacda6f6ca79f_X19tYW5pZmVzdF9fLnB5..ed97d0d6c4ce97428d9ed37088335ae85b57e72f_X19tYW5pZmVzdF9fLnB5 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -21,7 +21,7 @@ { "name": "Version", "license": "AGPL-3", - "version": "13.0.1.0.0", + "version": "11.0.1.0.0", "category": "Technical", "author": ["Smile", "XCG Consulting"], "website": "https://odoo.consulting/", diff --git a/static/src/js/code_version.js b/static/src/js/code_version.js index 50f27d174637774b3a1b870abf1eacda6f6ca79f_c3RhdGljL3NyYy9qcy9jb2RlX3ZlcnNpb24uanM=..ed97d0d6c4ce97428d9ed37088335ae85b57e72f_c3RhdGljL3NyYy9qcy9jb2RlX3ZlcnNpb24uanM= 100644 --- a/static/src/js/code_version.js +++ b/static/src/js/code_version.js @@ -4,7 +4,7 @@ var rpc = require("web.rpc"); var SystrayMenu = require("web.SystrayMenu"); var Widget = require("web.Widget"); - const config = require("web.config"); + var session = require("web.session"); var DisplayCodeVersion = Widget.extend({ template: "DisplayCodeVersion", @@ -15,7 +15,7 @@ method: "get_value", }).then(function (code_version_tuple) { self.$(".code_version").html(code_version_tuple[0]); - if (config.isDebug()) { + if (session.debug) { self.$(".code_version_title").attr("title", code_version_tuple[1]); } }); diff --git a/static/src/xml/code_version.xml b/static/src/xml/code_version.xml index 50f27d174637774b3a1b870abf1eacda6f6ca79f_c3RhdGljL3NyYy94bWwvY29kZV92ZXJzaW9uLnhtbA==..ed97d0d6c4ce97428d9ed37088335ae85b57e72f_c3RhdGljL3NyYy94bWwvY29kZV92ZXJzaW9uLnhtbA== 100644 --- a/static/src/xml/code_version.xml +++ b/static/src/xml/code_version.xml @@ -2,12 +2,7 @@ <templates> <t t-name="DisplayCodeVersion"> <li> - <a - class="o-no-caret code_version_title" - href="#" - role="status" - title="Version" - > + <a class="code_version_title" href="#" role="status" title="Version"> <i class="fa fa-code-fork" aria-label="Version" /> <span class="code_version" /> </a>