# HG changeset patch # User Balde Oury <oury.balde@xcg-consulting.fr> # Date 1665564770 -7200 # Wed Oct 12 10:52:50 2022 +0200 # Branch 11.0 # Node ID ed97d0d6c4ce97428d9ed37088335ae85b57e72f # Parent 50f27d174637774b3a1b870abf1eacda6f6ca79f Port to odoo 11.0 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml --- 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 --- a/NEWS.rst +++ b/NEWS.rst @@ -2,7 +2,7 @@ Changelog ========= -13.0.1.0.0 +11.0.1.0.0 ---------- -Initial version. +Port to Odoo 11.0 - TG-1249. diff --git a/README.rst b/README.rst --- a/README.rst +++ b/README.rst @@ -3,11 +3,11 @@ ======= .. |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 - :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 --- 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 --- 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 --- 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>