summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/session_instance.js
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2015-10-19 18:07:53 +0200
committerSimon Lejeune <sle@openerp.com>2015-10-20 15:38:24 +0200
commit108decbd99451a771428baa336e981aff5f8a797 (patch)
treeb234475e1f4dd66ace9a1f538257906c3fdad8c8 /addons/web/static/src/js/framework/session_instance.js
parentc0b2ef2b748e98041303a3bb72eabf8b85aafd14 (diff)
[FIX] ir_qweb: call clean_attachment at the end of save_attachment
.. instead of at the start. The reason is: if any rollback have to occur during the call to `save_attachments`, we want to avoid rollbacking an unlink on the ir.attachment table (because we cannot rollback the removal of a file in the filestore). This issue is especially annoying when we generate a bundle whose ir.attachment record has the same hash than the invalidated one (for instance when one of the source files in the bundle has been touched but not modified) and of of these rollback occurs: the bundle has been deleted on the filestore and cannot be served.
Diffstat (limited to 'addons/web/static/src/js/framework/session_instance.js')
0 files changed, 0 insertions, 0 deletions