[imp] modified behavior of domain evaluation, now does not rely anymore on a context for evaluation

bzr revid: nicolas.vanhoren@openerp.com-20110628145516-2ts81ufkvjuwirku
This commit is contained in:
niv-openerp
2011-06-28 16:55:16 +02:00
+2 -1
View 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)