diff options
| author | Bharat (OpenERP) <bde@tinyerp.com> | 2011-09-15 17:23:04 +0530 |
|---|---|---|
| committer | Bharat (OpenERP) <bde@tinyerp.com> | 2011-09-15 17:23:04 +0530 |
| commit | 422272530a461a4bd1b60351abc3290d022447b5 (patch) | |
| tree | 26084e44d41259bd1b1152c69062c03cdc3c857f /addons/document/document.py | |
| parent | 6e93c87ed8dadf0b510f516dea82dbe48a8230c3 (diff) | |
| parent | fbf6708d1041f84018bb9c13e997b705e6086648 (diff) | |
[MERGE] merged with main addons
bzr revid: bde@tinyerp.com-20110915115304-vn8tqi8s811w1p8j
Diffstat (limited to 'addons/document/document.py')
| -rw-r--r-- | addons/document/document.py | 2 |
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 |
