diff options
| author | Amit Mendapara <ame@tinyerp.com> | 2008-09-12 19:33:31 +0530 |
|---|---|---|
| committer | Amit Mendapara <ame@tinyerp.com> | 2008-09-12 19:33:31 +0530 |
| commit | abe80b1acfdfd80dd18030a5ba3eb1c3ef13dda1 (patch) | |
| tree | 7b20b8e1e9b74c6ce309c7815f1b318a4d472482 /addons/process | |
| parent | 5c58e5d12bf6c8506476abd4f919a9b45430aa57 (diff) | |
process graph_get returns more info.
bzr revid: ame@tinyerp.com-20080912140331-chp9afy88vywsxyd
Diffstat (limited to 'addons/process')
| -rw-r--r-- | addons/process/process.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/addons/process/process.py b/addons/process/process.py index 0b08c2e9ea2..cff0a1fb22d 100644 --- a/addons/process/process.py +++ b/addons/process/process.py @@ -74,6 +74,18 @@ class process_process(osv.osv): data['source'] = tr.node_from_id.id data['target'] = tr.node_to_id.id + data['buttons'] = buttons = [] + for b in tr.action_ids: + button = {} + button['name'] = b.name + buttons.append(button) + + data['roles'] = roles = [] + for r in tr.transition_ids: + 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())) |
