summaryrefslogtreecommitdiff
path: root/addons/document/document.py
diff options
context:
space:
mode:
authorAmit Parmar (OpenERP) <aar@tinyerp.com>2011-09-12 18:21:06 +0530
committerAmit Parmar (OpenERP) <aar@tinyerp.com>2011-09-12 18:21:06 +0530
commit28986d87fbd14f2b7eb5f560a668f738322cf74d (patch)
treebf5510d1004d1729ab8b757b9be64ae13fb22306 /addons/document/document.py
parentee8fb1c6f7949716b4e50084f5f9ec63ddf99425 (diff)
[IMP] improve the opportunity merging and its attachments
bzr revid: aar@tinyerp.com-20110912125106-xmh53poxaytd4frt
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 69e123b87eb..ef9ca01bd1e 100644
--- a/addons/document/document.py
+++ b/addons/document/document.py
@@ -252,7 +252,7 @@ class document_file(osv.osv):
ids = ids2
if 'file_size' in vals: # only write that field using direct SQL calls
del vals['file_size']
- if len(ids) and len(vals):
+ if ids and vals:
result = super(document_file,self).write(cr, uid, ids, vals, context=context)
cr.commit() # ?
return result