diff options
| author | Amit Mendapara <ame@tinyerp.com> | 2008-09-22 15:39:23 +0530 |
|---|---|---|
| committer | Amit Mendapara <ame@tinyerp.com> | 2008-09-22 15:39:23 +0530 |
| commit | c8d51ca11f4773b4dcdccaaf4245b6e70eca323a (patch) | |
| tree | 45ac8790d84062c86f00d97523a40bc24d3f9f58 /addons/process | |
| parent | b74fd90c8572c7c701e336db57ed06b8d3ff80c5 (diff) | |
Node with related resource information.
bzr revid: ame@tinyerp.com-20080922100923-37nk60zyqv3hxoai
Diffstat (limited to 'addons/process')
| -rw-r--r-- | addons/process/process.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/addons/process/process.py b/addons/process/process.py index 7e53beb4b87..636135cc8e6 100644 --- a/addons/process/process.py +++ b/addons/process/process.py @@ -79,9 +79,12 @@ class process_process(osv.osv): ret = False for name, field in fields.items(): - if node.model_id and field.get('relation', False) == node.model_id.model: - #TODO: get resource info - pass + if node.model_id and field.get('relation', False) == node.model_id.model and current_object[name]: + rel = current_object[name][0] + ret = {} + ret['name'] = rel.name_get(context)[0][1] + ret['model'] = field['relation'] + ret['id'] = rel.id return ret |
