From b49ece30d3985fef138af6c1c60da53d0777368d Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 25 Mar 2011 16:08:38 +0100 Subject: [PATCH] [FIX] evaluation context should contain itself (as some domains go get stuff via context.get) bzr revid: xmo@openerp.com-20110325150838-qxo8ruf6i2v3jt5l --- openerpweb/openerpweb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openerpweb/openerpweb.py b/openerpweb/openerpweb.py index c2e01a737f7..724a523aa13 100644 --- a/openerpweb/openerpweb.py +++ b/openerpweb/openerpweb.py @@ -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)