[imp] modified behavior of domain evaluation, now does not rely anymore on a context...
authorniv-openerp <nicolas.vanhoren@openerp.com>
Tue, 28 Jun 2011 14:54:13 +0000 (16:54 +0200)
committerniv-openerp <nicolas.vanhoren@openerp.com>
Tue, 28 Jun 2011 14:54:13 +0000 (16:54 +0200)
bzr revid: nicolas.vanhoren@openerp.com-20110628145413-ljqdmunxi7ykmytz

addons/base/controllers/main.py

index b289259..7afaa17 100644 (file)
@@ -234,7 +234,8 @@ class Session(openerpweb.Controller):
         
 def eval_context_and_domain(session, context, domain=None):
     e_context = session.eval_context(context)
-    e_domain = session.eval_domain(domain or [], e_context)
+    # should we give the evaluated context as an evaluation context to the domain?
+    e_domain = session.eval_domain(domain or [])
 
     return (e_context, e_domain)