diff options
| author | Harry (Open ERP) <hmo@tinyerp.com> | 2009-10-12 15:26:24 +0530 |
|---|---|---|
| committer | Harry (Open ERP) <hmo@tinyerp.com> | 2009-10-12 15:26:24 +0530 |
| commit | f1551ec47347ffecafa0832789e248913dfe9446 (patch) | |
| tree | 4f2ec23187cc456683d95844dde906eae49c927b /addons/document/document.py | |
| parent | c6e7a0d8ee21c02cdbcfd584961640c6a0344e25 (diff) | |
[IMP]document : upgrade pyftplib with new version 0.5.1
bzr revid: hmo@tinyerp.com-20091012095624-pt9mjfd3uahkhyil
Diffstat (limited to 'addons/document/document.py')
| -rw-r--r-- | addons/document/document.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/document/document.py b/addons/document/document.py index 460c52a9698..1d7ca841576 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: |
