projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b74fd90
)
Node with related resource information.
author
Amit Mendapara
<ame@tinyerp.com>
Mon, 22 Sep 2008 10:09:23 +0000
(15:39 +0530)
committer
Amit Mendapara
<ame@tinyerp.com>
Mon, 22 Sep 2008 10:09:23 +0000
(15:39 +0530)
bzr revid: ame@tinyerp.com-
20080922100923
-37nk60zyqv3hxoai
addons/process/process.py
patch
|
blob
|
history
diff --git
a/addons/process/process.py
b/addons/process/process.py
index
7e53beb
..
636135c
100644
(file)
--- 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():
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
return ret