Skip to content
Snippets Groups Projects
Commit 1eea693e authored by Harshad Modi's avatar Harshad Modi
Browse files

[MERGE]

bzr revid: hmo@tinyerp.com-20100720110535-0s6ptvaviv13aoum
parents fa3e08b9 22257372
Branches
Tags
No related merge requests found
......@@ -239,10 +239,10 @@ class document_file(osv.osv):
if obj_model._name == 'res.partner':
return res_id
elif 'partner_id' in obj_model._columns and obj_model._columns['partner_id']._obj == 'res.partner':
bro = obj_model.browse(self, cr, uid, res_id, context=context)
bro = obj_model.browse(cr, uid, res_id, context=context)
return bro.partner_id.id
elif 'address_id' in obj_model._columns and obj_model._columns['address_id']._obj == 'res.partner.address':
bro = obj_model.browse(self, cr, uid, res_id, context=context)
bro = obj_model.browse(cr, uid, res_id, context=context)
return bro.address_id.partner_id.id
return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment