From b6f6a0dacdd5e4ffb6a17d9b5311cda9e9c8d667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Hennecart?= Date: Fri, 25 Sep 2020 09:35:10 +0000 Subject: [PATCH] [FIX] web: fix notification design Fix the design of he notification which is sometimes broken (if there are lists or buttons display in it for example) task-2346462 closes odoo/odoo#59776 X-original-commit: 238654ae53582d791154388c827f725c8d136612 Signed-off-by: Thibault Delavallee (tde) --- addons/web/static/src/xml/notification.xml | 4 ++-- .../web/static/tests/services/notification_service_tests.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/web/static/src/xml/notification.xml b/addons/web/static/src/xml/notification.xml index a6cb930b55b..e23538d1e28 100644 --- a/addons/web/static/src/xml/notification.xml +++ b/addons/web/static/src/xml/notification.xml @@ -19,7 +19,8 @@ t-raw="widget.title"/> -
+
+
-
diff --git a/addons/web/static/tests/services/notification_service_tests.js b/addons/web/static/tests/services/notification_service_tests.js index 83ff3a5a5cd..45b4de51b10 100644 --- a/addons/web/static/tests/services/notification_service_tests.js +++ b/addons/web/static/tests/services/notification_service_tests.js @@ -59,7 +59,7 @@ QUnit.module('Services', { await testUtils.nextMicrotaskTick(); var $notification = $('body .o_notification_manager .o_notification'); assert.strictEqual($notification.html().trim().replace(/\s+/g, ' '), - "
a
b
", + "
a
b
", "should display notification"); assert.containsOnce($notification, '.o_notification_close'); await waitCloseNotification(); @@ -80,7 +80,7 @@ QUnit.module('Services', { await testUtils.nextMicrotaskTick(); var $notification = $('body .o_notification_manager .o_notification'); assert.strictEqual($notification.html().trim().replace(/\s+/g, ' '), - "
a
b
", + "
a
b
", "should display notification"); view.destroy(); }); @@ -206,7 +206,7 @@ QUnit.module('Services', { assert.containsOnce($notification.eq(0), '.o_notification_close', "should display the close button in notification"); assert.strictEqual($notification.html().trim().replace(/\s+/g, ' '), - "
a0
b0
", + "
a0
b0
", "should display notification"); testUtils.dom.click($notification.find('.o_notification_buttons button:contains(accept0)'));