Fixed process (active node).

bzr revid: ame@tinyerp.com-20080917142344-s3opqj63azmm5jqg
This commit is contained in:
Amit Mendapara
2008-09-17 19:53:44 +05:30
parent 24e03ae890
commit c0b8a50ba1
+1 -1
View File
@@ -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: