=== modified file 'addons/openerp/controllers/__init__.py'
--- addons/openerp/controllers/__init__.py 2017-06-19 14:54:07 +0000
+++ addons/openerp/controllers/__init__.py 2017-09-26 07:32:44 +0000
@@ -16,6 +16,7 @@
import selection
import shortcuts
import banner
+import shortcut_tooltip
import requests
import unifield_version
import openm2o
=== added file 'addons/openerp/controllers/shortcut_tooltip.py'
--- addons/openerp/controllers/shortcut_tooltip.py 1970-01-01 00:00:00 +0000
+++ addons/openerp/controllers/shortcut_tooltip.py 2017-09-26 07:32:44 +0000
@@ -0,0 +1,33 @@
+###############################################################################
+#
+# Copyright (C) 2007-TODAY OpenERP SA. All Rights Reserved.
+#
+# $Id$
+#
+# Developed by OpenERP (http://openerp.com) and Axelor (http://axelor.com).
+#
+# The OpenERP web client is distributed under the "OpenERP Public License".
+# It's based on Mozilla Public License Version (MPL) 1.1 with following
+# restrictions:
+#
+# - All names, links and logos of OpenERP must be kept as in original
+# distribution without any changes in all software screens, especially
+# in start-up page and the software header, even if the application
+# source code has been changed or updated or code has been added.
+#
+# You can see the MPL licence at: http://www.mozilla.org/MPL/MPL-1.1.html
+#
+###############################################################################
+from openerp.controllers import SecuredController
+from openerp.utils import rpc
+
+
+class ShortcutTooltip(SecuredController):
+
+ _cp_path = "/openerp/shortcut_tooltip"
+
+ def get_show_shortcut(self):
+ proxy = rpc.RPCProxy('sync.client.entity')
+ return proxy.display_shortcut_message()
+
+# vim: ts=4 sts=4 sw=4 si et
=== modified file 'addons/openerp/controllers/templates/base.mako'
--- addons/openerp/controllers/templates/base.mako 2017-09-14 13:33:18 +0000
+++ addons/openerp/controllers/templates/base.mako 2017-09-26 07:32:44 +0000
@@ -10,11 +10,11 @@
-
+
-
+
-
+
=== modified file 'addons/openerp/controllers/templates/exp.mako'
--- addons/openerp/controllers/templates/exp.mako 2017-08-29 09:33:08 +0000
+++ addons/openerp/controllers/templates/exp.mako 2017-09-26 07:32:44 +0000
@@ -286,7 +286,7 @@
=== added file 'addons/openerp/controllers/templates/shortcut_tooltip.mako'
--- addons/openerp/controllers/templates/shortcut_tooltip.mako 1970-01-01 00:00:00 +0000
+++ addons/openerp/controllers/templates/shortcut_tooltip.mako 2017-09-26 07:32:44 +0000
@@ -0,0 +1,13 @@
+<%
+# put in try block to prevent improper redirection on connection refuse error
+try:
+ SHORTCUT = cp.request.pool.get_controller("/openerp/shortcut_tooltip")
+ display_message = SHORTCUT.get_show_shortcut()
+ message = _("You haven't recently used a keyboard shortcut. You can see what shortcuts are available on this screen by holding SHIFT + CTRL.")
+except:
+ display_message = False
+ message = 'toto'
+%>
+% if display_message:
+