summaryrefslogtreecommitdiff
path: root/addons/web_planner/static/src/xml/web_planner.xml
diff options
context:
space:
mode:
authorDamien Bouvy <dbo@odoo.com>2015-11-18 15:26:43 +0100
committerOlivier Dony <odo@openerp.com>2015-11-25 18:12:42 +0100
commit0a6edac151d6d34b264735729d6575b399dc6455 (patch)
tree3affddcf5a194efba29ca5a05f576cf1e0da4573 /addons/web_planner/static/src/xml/web_planner.xml
parente8e5405d0cafa460648b1bab5b144fb81ebd9508 (diff)
[FIX] web, openerp: make the webclient edition aware
- Differentiate between the Community and Enterprise editions in the version number. By adding this attribute on the global odoo JS object in the web client bootstrap controller /web, we can differentiate between versions easily on the client side without extra RPC calls. - Remove a couple of version-related RPC calls in case the global version info is present in the JS environment - Update "About" panel to display the edition info - This commit also reverts 07fe5afc874b9527eac5408d9adc53a9a700aad3 which implemented the idea in a more limited way. Closes #9625
Diffstat (limited to 'addons/web_planner/static/src/xml/web_planner.xml')
-rw-r--r--addons/web_planner/static/src/xml/web_planner.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/addons/web_planner/static/src/xml/web_planner.xml b/addons/web_planner/static/src/xml/web_planner.xml
index 69f1d3e4df1..ce01833c3ea 100644
--- a/addons/web_planner/static/src/xml/web_planner.xml
+++ b/addons/web_planner/static/src/xml/web_planner.xml
@@ -33,7 +33,13 @@
</div>
<div class="user-info-block">
<div class="user-heading">
- <h3>Version <t t-esc="version_info.server_version"/></h3>
+ <h3>
+ Version <t t-esc="db_info.server_version"/>
+ (<span t-esc="db_info.server_version_info[5] == 'e'?'Enterprise':'Community'"/> Edition)
+ </h3>
+ <t t-if="db_info.expiration_date">
+ <h5>Database expiration: <t t-esc="new moment(db_info.expiration_date).format('LL')"/></h5>
+ </t>
</div>
<div class="user-body">
<div class="tab-content">