diff options
| author | uco (OpenERP) <uco@tinyerp.com> | 2010-06-17 12:05:37 +0530 |
|---|---|---|
| committer | uco (OpenERP) <uco@tinyerp.com> | 2010-06-17 12:05:37 +0530 |
| commit | 79a4a8a3278097d5b935e7568ef3afff81bbe5e6 (patch) | |
| tree | a18703d9fc7b20d5a2a717fa8af8dfbb65ed8870 /bin/workflow | |
| parent | 73cafa00bcd06e81f131725830ddef97e68f257b (diff) | |
| parent | 7d60becc0a500937d92752b0dde2ce88ef0398b2 (diff) | |
[MERGE]: Merged with trunk-server.
bzr revid: uco@tinyerp.com-20100617063537-8cv03xltm7fqw6rh
Diffstat (limited to 'bin/workflow')
| -rw-r--r-- | bin/workflow/wkf_expr.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/workflow/wkf_expr.py b/bin/workflow/wkf_expr.py index 98896df9324..0150105c3ab 100644 --- a/bin/workflow/wkf_expr.py +++ b/bin/workflow/wkf_expr.py @@ -23,6 +23,7 @@ import sys import netsvc import osv as base import pooler +from tools.safe_eval import safe_eval as eval class Env(dict): def __init__(self, cr, uid, model, ids): @@ -54,7 +55,7 @@ def _eval_expr(cr, ident, workitem, action): ret=False else: env = Env(cr, uid, model, ids) - ret = eval(line, env) + ret = eval(line, env, nocopy=True) return ret def execute_action(cr, ident, workitem, activity): |
