diff options
| author | Fabien Pinckaers <fp@tinyerp.com> | 2011-09-17 16:26:02 +0200 |
|---|---|---|
| committer | Fabien Pinckaers <fp@tinyerp.com> | 2011-09-17 16:26:02 +0200 |
| commit | b0a48a35b9ddf64e4095325d66a6e1a660a82f41 (patch) | |
| tree | d5aae73a5c52ea8035babfb04d6761f9620c4fa4 /addons/document/document.py | |
| parent | 94fe64260f993ded7da06a90dea2f78e523950e3 (diff) | |
| parent | 48e5b1b8b7cf652090e82f94bc96704053ff0283 (diff) | |
merge
bzr revid: fp@tinyerp.com-20110917142602-vo8pl5dpqp82e4z0
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 ef9ca01bd1e..774c4e53a80 100644 --- a/addons/document/document.py +++ b/addons/document/document.py @@ -64,7 +64,7 @@ class document_file(osv.osv): "SET parent_id = %s, db_datas = decode(encode(db_datas,'escape'), 'base64') " \ "WHERE parent_id IS NULL", (parent_id,)) - cr.execute("UPDATE ir_attachment SET file_size=length(db_datas) WHERE file_size = 0;") + cr.execute("UPDATE ir_attachment SET file_size=length(db_datas) WHERE file_size = 0 and type = 'binary'") cr.execute("ALTER TABLE ir_attachment ALTER parent_id SET NOT NULL") |
