From 07fe5afc874b9527eac5408d9adc53a9a700aad3 Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Tue, 17 Nov 2015 11:40:03 +0100 Subject: [PATCH] [IMP] web: distinction between community and enterprise version in the js framework It was bound to happen: some functionnality need to be triggered depending on the current edition of Odoo. To do this, we add a property 'version' on the global odoo object. This change is mirrored on the enterprise repo. --- addons/web/static/src/js/boot.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/js/boot.js b/addons/web/static/src/js/boot.js index c63acb01bdf..6c0a4a305aa 100644 --- a/addons/web/static/src/js/boot.js +++ b/addons/web/static/src/js/boot.js @@ -51,6 +51,7 @@ testing: typeof QUnit === "object", debug: debug, remaining_jobs: jobs, + version: "community", __DEBUG__: { get_dependencies: function (name, transitive) {