[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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user