projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5074790
)
[FIX] Uninstalling a board_* module removes dashboard action, but user shuold be...
author
Jay (Open ERP)
<jvo@tinyerp.com>
Wed, 12 May 2010 12:27:03 +0000
(17:57 +0530)
committer
Jay (Open ERP)
<jvo@tinyerp.com>
Wed, 12 May 2010 12:27:03 +0000
(17:57 +0530)
bzr revid: jvo@tinyerp.com-
20100512122703
-2dphzjpr9uzs1wrl
bin/addons/base/res/res_user.py
patch
|
blob
|
history
diff --git
a/bin/addons/base/res/res_user.py
b/bin/addons/base/res/res_user.py
index
014da9e
..
1045e00
100644
(file)
--- a/
bin/addons/base/res/res_user.py
+++ b/
bin/addons/base/res/res_user.py
@@
-209,6
+209,15
@@
class users(osv.osv):
result = override_password(result)
else:
result = map(override_password, result)
+
+ if isinstance(result, list):
+ for rec in result:
+ if not rec.get('action_id',True):
+ rec['action_id'] = (self._get_menu(cr, uid),'Menu')
+ else:
+ if not result.get('action_id',True):
+ result['action_id'] = (self._get_menu(cr, uid),'Menu')
+
return result