From d0b6bf11812fd80812aef2ad79e297a7dc8d537a Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Wed, 27 Oct 2010 13:23:24 +0300 Subject: [PATCH] document: richer eval() context for res_dirs. We need to provide 'ctx' to the eval(), so that "uid" is defined in the expression. Covers the case of user directories. bzr revid: p_christ@hol.gr-20101027102324-ujy2293kpdzouna2 --- addons/document/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/document/nodes.py b/addons/document/nodes.py index 3a3e6fab54b..eed424ccb6a 100644 --- a/addons/document/nodes.py +++ b/addons/document/nodes.py @@ -791,7 +791,7 @@ class node_res_dir(node_class): ctx.update(self.dctx) where = [] if self.domain: - app = safe_eval(self.domain, self.dctx) + app = safe_eval(self.domain, ctx) if not app: pass elif isinstance(app, list):