[FIX] ir.qweb: consider empty cached bundle as a cache miss
authorOlivier Dony <odo@openerp.com>
Wed, 3 Sep 2014 16:44:22 +0000 (18:44 +0200)
committerOlivier Dony <odo@openerp.com>
Mon, 8 Sep 2014 14:52:42 +0000 (16:52 +0200)
commit491162e653c939f9c14f21697ed72db1b9fe4017
treed8312ec8458ab2db2d33576b0c08e7dbe0c011a8
parenta03dfefda9b4ea3554b9dc23ca9ebeb706b15ff1
[FIX] ir.qweb: consider empty cached bundle as a cache miss

Sometimes a cached bundled could be missing in the
ir.attachment filestore (for example after copying
a database for test purposes without duplicating
the filestore as well).
When this happens ir.attachment will return an empty
file contents ; treat this as a cache miss.

This means empty bundles would not be cached, which
is not a big issue - there is little benefit in
caching them, and they should not be common nor
useful.
openerp/addons/base/ir/ir_qweb.py