summaryrefslogtreecommitdiff
path: root/addons/document/document.py
diff options
context:
space:
mode:
authorHarry (Open ERP) <hmo@tinyerp.com>2010-03-29 13:39:47 +0530
committerHarry (Open ERP) <hmo@tinyerp.com>2010-03-29 13:39:47 +0530
commitf03a4fe933d9472d0b0d22bc29bbfcf2076d3a18 (patch)
tree884c945ac83afd494c32b403d118f96ceabb81d9 /addons/document/document.py
parent836e67c9fa22c6f193dd21c8653932bc071122a8 (diff)
parent8756f1f7c4064da5011cf03ff0499085912ab382 (diff)
[MERGE] merge with trunk-addons
bzr revid: hmo@tinyerp.com-20100329080947-lojccpq7zwynyg6v
Diffstat (limited to 'addons/document/document.py')
-rw-r--r--addons/document/document.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/document/document.py b/addons/document/document.py
index 86f02e85269..f6cbddebae7 100644
--- a/addons/document/document.py
+++ b/addons/document/document.py
@@ -165,7 +165,7 @@ class document_file(osv.osv):
vals['res_model'] = context.get('default_res_model', False)
if vals.get('res_id', False) and vals.get('res_model', False):
obj_model = self.pool.get(vals['res_model'])
- result = obj_model.read(cr, uid, [vals['res_id']], context=context)
+ result = obj_model.read(cr, uid, [vals['res_id']], ['name', 'partner_id', 'address_id'], context=context)
if len(result):
obj = result[0]
if obj.get('name', False):