Fixed Process

bzr revid: ame@tinyerp.com-20080917052832-llmvpdgnythblhqm
This commit is contained in:
Amit Mendapara 2008-09-17 10:58:32 +05:30
parent b372719e1f
commit a0c5648e2d
1 changed files with 5 additions and 4 deletions

View File

@ -97,10 +97,11 @@ class process_process(osv.osv):
data['roles'] = roles = []
for r in tr.transition_ids:
role = {}
role['name'] = r.role_id.name
roles.append(role)
if r.role_id:
role = {}
role['name'] = r.role_id.name
roles.append(role)
transitions[tr.id] = data
g = tools.graph(nodes.keys(), map(lambda x: (x['source'], x['target']), transitions.values()))