[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:
Xavier Morel 2011-03-25 16:08:38 +01:00
parent 1938cda158
commit b49ece30d3
1 changed files with 2 additions and 0 deletions

View File

@ -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)