Fixed gray node calculation.

bzr revid: ame@tinyerp.com-20080919084343-l67hk7qth109ri2f
This commit is contained in:
Amit Mendapara
2008-09-19 14:13:43 +05:30
parent 062200d9d2
commit 6346d5d49d
+3 -3
View File
@@ -98,11 +98,11 @@ class process_process(osv.osv):
if not data['active']:
try:
gray = False
gray = True
for cond in node.condition_ids:
if cond.model_id and cond.model_id.model == res_model:
gray = gray or eval(cond.model_states, expr_context)
data['gray'] = gray
gray = gray and eval(cond.model_states, expr_context)
data['gray'] = not gray
except:
pass