summaryrefslogtreecommitdiff
path: root/addons/document/document.py
diff options
context:
space:
mode:
authorHarry (Open ERP) <hmo@tinyerp.com>2010-04-06 18:04:29 +0530
committerHarry (Open ERP) <hmo@tinyerp.com>2010-04-06 18:04:29 +0530
commit85c42e9270d9689e08b2864a5292ae801ecbfd67 (patch)
treed013befdb389847c9320f980f4e8ec824fda3bee /addons/document/document.py
parentd07c7bc4d6f85d593071e1d5a4900771d32545d1 (diff)
parentaa70854c09a1e287342e830318c873131bf9744f (diff)
[MERGE]
bzr revid: hmo@tinyerp.com-20100406123429-hu7m4lnflo0amjr5
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):