X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=addons%2Fprocess%2Fprocess.py;h=74b0d6fc03690317d92cca63bf9ae67dd2b73699;hb=c0b8a50ba1b425d0574efcff7d749be2a1818e03;hp=0a8be26995b280159523255b041129bd10e0d43a;hpb=24e03ae890325d67794d844b1c5c2eb8d7389bff;p=odoo%2Fodoo.git diff --git a/addons/process/process.py b/addons/process/process.py index 0a8be26..74b0d6f 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: