=== modified file 'openerp/controllers/search.py' --- openerp/controllers/search.py 2009-11-16 07:34:24 +0000 +++ openerp/controllers/search.py 2009-12-02 11:42:16 +0000 @@ -154,6 +154,9 @@ if val==None: context[key] = False + if isinstance(context, dict): + context = tools.expr_eval(context, ctx) + ctx2 = parent_context context.update(ctx2) === modified file 'openerp/tools/tools.py' --- openerp/tools/tools.py 2009-05-27 06:15:32 +0000 +++ openerp/tools/tools.py 2009-12-02 11:31:44 +0000 @@ -42,6 +42,10 @@ string = string.replace("'active_id'", "active_id") return eval(string, context) else: + if isinstance(string, dict): + for i,v in string.items(): + if v=='active_id': + string[i] = eval(v,context) return string def node_attributes(node):