diff --git a/bin/addons/base/base_update.xml b/bin/addons/base/base_update.xml
index 26da68633f4..10e4607ef41 100644
--- a/bin/addons/base/base_update.xml
+++ b/bin/addons/base/base_update.xml
@@ -81,6 +81,8 @@
+
+
@@ -119,7 +121,9 @@
-
+
+
+
diff --git a/bin/addons/base/ir/ir_actions.py b/bin/addons/base/ir/ir_actions.py
index 3b51af26f53..62b387607a3 100644
--- a/bin/addons/base/ir/ir_actions.py
+++ b/bin/addons/base/ir/ir_actions.py
@@ -210,12 +210,14 @@ class act_window(osv.osv):
return res
def _get_help_status(self, cr, uid, ids, name, arg, context={}):
- cr.execute(""" SELECT action.id,
- CASE WHEN r.uid IS NULL THEN True ELSE False END
- AS help_status FROM ir_act_window action
- LEFT JOIN ir_act_window_user_rel r ON
- (action.id = r.act_id AND (r.uid IS NULL or r.uid= %s)) WHERE action.id = ANY(%s)""",(uid,ids,))
- return dict(cr.fetchall())
+ activate_tips = self.pool.get('res.users').browse(cr, uid, uid).menu_tips
+ if activate_tips:
+ cr.execute(""" SELECT action.id,
+ CASE WHEN r.uid IS NULL THEN True ELSE False END
+ AS help_status FROM ir_act_window action
+ LEFT JOIN ir_act_window_user_rel r ON
+ (action.id = r.act_id AND (r.uid IS NULL or r.uid= %s)) WHERE action.id = ANY(%s)""",(uid,ids,))
+ return dict(cr.fetchall())
_columns = {
'name': fields.char('Action Name', size=64, translate=True),
diff --git a/bin/addons/base/res/res_user.py b/bin/addons/base/res/res_user.py
index 99e75fd7ec3..22962a03a5a 100644
--- a/bin/addons/base/res/res_user.py
+++ b/bin/addons/base/res/res_user.py
@@ -260,6 +260,8 @@ class users(osv.osv):
selection=[('simple','Simplified'),('extended','Extended')],
string='Interface', help="Choose between the simplified interface and the extended one"),
'user_email': fields.function(_email_get, method=True, fnct_inv=_email_set, string='Email', type="char", size=240),
+ 'menu_tips': fields.boolean('Menu Tips', help="Check out this box if you want to display tips on each menu action"),
+
}
def read(self,cr, uid, ids, fields=None, context=None, load='_classic_read'):
@@ -349,6 +351,7 @@ class users(osv.osv):
'company_ids': _get_companies,
'groups_id': _get_group,
'address_id': False,
+ 'menu_tips':True
}
@tools.cache()
@@ -356,7 +359,7 @@ class users(osv.osv):
return self._get_company(cr, uid, context=context, uid2=uid2)
# User can write to a few of her own fields (but not her groups for example)
- SELF_WRITEABLE_FIELDS = ['view', 'password', 'signature', 'action_id', 'company_id', 'user_email']
+ SELF_WRITEABLE_FIELDS = ['menu_tips','view', 'password', 'signature', 'action_id', 'company_id', 'user_email']
def write(self, cr, uid, ids, values, context=None):
if not hasattr(ids, '__iter__'):