Don't recall get_preferences

This commit is contained in:
Cédric Krier committed 2008-06-26 11:31:57 +02:00
1 parent f9727caa4e
commit 36ba449ef9
1 file changed
-7
-7
View File
@@ -865,13 +865,6 @@ class Main(object):
if except_id and act_id == except_id:
return act_id
Action.execute(act_id, {'window': self.window})
try:
prefs = rpc.execute('object', 'execute',
'res.user', 'get_preferences', False, rpc.CONTEXT)
if prefs[menu_type]:
act_id = prefs[menu_type]
except:
pass
return act_id
def sig_home_new(self, widget=None, quiet=True, except_id=False):