summaryrefslogtreecommitdiff
path: root/addons/document/document.py
diff options
context:
space:
mode:
authorHDA (OpenERP) <hda@tinyerp.com>2009-10-13 12:05:20 +0530
committerHDA (OpenERP) <hda@tinyerp.com>2009-10-13 12:05:20 +0530
commiteef3601ed49594befc623361518e955d46becae5 (patch)
tree0552cbd21df5dabff24ebefba07de1e6092cdb80 /addons/document/document.py
parent41e8ed59efc26062da19b8eaf3f9e58489a00cb8 (diff)
parentf1551ec47347ffecafa0832789e248913dfe9446 (diff)
[Merged]
bzr revid: hda@tinyerp.com-20091013063520-mq5q0epaop44ideg
Diffstat (limited to 'addons/document/document.py')
-rw-r--r--addons/document/document.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/document/document.py b/addons/document/document.py
index ebfed095020..52fe7e9bf55 100644
--- a/addons/document/document.py
+++ b/addons/document/document.py
@@ -655,7 +655,6 @@ class document_file(osv.osv):
vals['res_id']=context.get('default_res_id',False)
if not vals.get('res_model', False) and context.get('default_res_model',False):
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)
@@ -694,7 +693,7 @@ class document_file(osv.osv):
try:
res = content_index(base64.decodestring(datas), vals['datas_fname'], vals.get('content_type', None))
super(document_file,self).write(cr, uid, [result], {
- 'index_content' : res,
+ 'index_content': res,
})
cr.commit()
except: