summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/less/web_editor.ui.less
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2016-07-26 13:28:00 +0200
committerSimon Lejeune <sle@openerp.com>2016-07-27 16:56:42 +0200
commitee228cd83795a8356d5f87ec195c81db05cb0476 (patch)
tree6f558eea9507833da8d636490a98cd1c1df56c6a /addons/web_editor/static/src/less/web_editor.ui.less
parent138cf9bbce37decb675ef2a76ed4342c57b6b661 (diff)
[FIX] ir_qweb: issue if multiple IRA are created for a bundle
If multiple transactions start knowing that they should generate the bundle, each one will run lessc and create a ir.attachment record referencing the path on the filestore. While the file is not duplicated on the filestore (as it is stored according to its hash), the final result of `t-call-assets` will source multiple time the same file. This patch fixes this issue by adapting get_attachment to group its results by file name and only select the one with the max id (latest generated). We also remove the `inc` argument as it is not used.
Diffstat (limited to 'addons/web_editor/static/src/less/web_editor.ui.less')
0 files changed, 0 insertions, 0 deletions