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:
666ed25
)
[imp] re used context retreival
author
niv-openerp
<nicolas.vanhoren@openerp.com>
Fri, 6 Jan 2012 10:16:19 +0000
(11:16 +0100)
committer
niv-openerp
<nicolas.vanhoren@openerp.com>
Fri, 6 Jan 2012 10:16:19 +0000
(11:16 +0100)
bzr revid: nicolas.vanhoren@openerp.com-
20120106101619
-d0po1e513o2gti2b
addons/web/common/session.py
patch
|
blob
|
history
diff --git
a/addons/web/common/session.py
b/addons/web/common/session.py
index
9056704
..
ac0489b
100644
(file)
--- a/
addons/web/common/session.py
+++ b/
addons/web/common/session.py
@@
-107,8
+107,7
@@
class OpenERPSession(object):
:returns: the new context
"""
assert self._uid, "The user needs to be logged-in to initialize his context"
- self.context = self.model('res.users').context_get(self.context)
- self.context = self.context or {}
+ self.context = self.build_connection().get_user_context() or {}
return self.context