From f1e999d33ebfb249eb0bbfa9e99f903a18842278 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 15 Nov 2018 13:28:49 +0100 Subject: [PATCH] [FIX] web_editor: properly post process document upload When using the media dialog, when uploading an image, the image list refreshes itself properly. This was not the case for documents as it was... refreshing the image list too instead of the document list. Also, when uploading a document, it is supposed to be added in the page directly and the media dialog is supposed to close. This feature was broken for the same reason: the iframe system of both tabs which were using the same name. Bug introduced with https://github.com/odoo/odoo/commit/abde8bddf8ec45cf12aab59e95c330321158cfba (even though is was technically wrong for the same reason before). Closes https://github.com/odoo/odoo/pull/28722 --- addons/web_editor/static/src/xml/editor.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/web_editor/static/src/xml/editor.xml b/addons/web_editor/static/src/xml/editor.xml index 425c1bf1bce..dab833bce06 100644 --- a/addons/web_editor/static/src/xml/editor.xml +++ b/addons/web_editor/static/src/xml/editor.xml @@ -79,11 +79,12 @@ +
+ t-att-target="iframeName"> @@ -118,7 +119,7 @@
-