[FIX] evaluation context should contain itself (as some domains go get stuff via context.get)
bzr revid: xmo@openerp.com-20110325150838-qxo8ruf6i2v3jt5l
This commit is contained in:
parent
1938cda158
commit
b49ece30d3
|
@ -144,6 +144,7 @@ class OpenERPSession(object):
|
|||
ctx.update(self.base_eval_context)
|
||||
if context:
|
||||
ctx.update(context)
|
||||
ctx['context'] = ctx
|
||||
|
||||
return eval(context_string, ctx)
|
||||
|
||||
|
@ -195,6 +196,7 @@ class OpenERPSession(object):
|
|||
ctx.update(self.base_eval_context)
|
||||
if context:
|
||||
ctx.update(context)
|
||||
ctx['context'] = ctx
|
||||
|
||||
return eval(domain_string, ctx)
|
||||
|
||||
|
|
Loading…
Reference in New Issue