From c0b8a50ba1b425d0574efcff7d749be2a1818e03 Mon Sep 17 00:00:00 2001 From: Amit Mendapara Date: Wed, 17 Sep 2008 19:53:44 +0530 Subject: [PATCH] Fixed process (active node). bzr revid: ame@tinyerp.com-20080917142344-s3opqj63azmm5jqg --- addons/process/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/process/process.py b/addons/process/process.py index 0a8be26995b..74b0d6fc036 100644 --- a/addons/process/process.py +++ b/addons/process/process.py @@ -65,7 +65,7 @@ class process_process(osv.osv): if node.kind == "state" and node.model_id and node.model_id.model == res_model: states = node.model_states states = (states or []) and states.split(',') - data['active'] = (states and current_object.state in states) or not states + data['active'] = not states or current_object.state in states elif node.kind == "router": #TODO: