Fixed process (temporary fix).

bzr revid: ame@tinyerp.com-20080925094023-uejyduf4ivmdpt2a
This commit is contained in:
Amit Mendapara 2008-09-25 11:40:23 +02:00
parent a3a7e64534
commit b89d08b629
1 changed files with 8 additions and 3 deletions

View File

@ -199,9 +199,14 @@ class process_process(osv.osv):
rel = refobj[n]
if rel and isinstance(rel, list) :
rel = rel[0]
_id = (rel or False) and rel.id
_model = node['model']
update_relatives(r, _id, _model)
if isinstance(rel, basestring):
print "XXX: ", rel
try: # XXXXXXXXXXXXXXXXXXX
_id = (rel or False) and rel.id
_model = node['model']
update_relatives(r, _id, _model)
except:
pass
for nid, node in nodes.items():
if not node['gray'] and (node['active'] or node['model'] == res_model):