From 3288304f59bb473be6d5a5f8caf66f54c131b116 Mon Sep 17 00:00:00 2001 From: Dhruv Patel Date: Tue, 2 Jun 2020 07:19:05 +0000 Subject: [IMP] web,*: make notification title optional *odoo_referral,portal Currently, it is not possible to have one line notification, when you are not passing the title parameter as an option when generating the notification,then it will display the blank div with the default button icon only. so it is not possible to have one-line notifications since the title is mandatory. So the purpose of the task is to make the title optional, allowing for more minimalistic notification. Also removed some unnecessary titles from the notification and some stying change. This commit also increase the autoclose delay of non sticky notifications, from 2.5s to 4s. task : 2264749 closes odoo/odoo#52229 Related: odoo/enterprise#10981 Signed-off-by: Aaron Bohy (aab) Co-authored-by: Dhruv Patel --- addons/web/static/src/xml/notification.xml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'addons/web/static/src/xml/notification.xml') diff --git a/addons/web/static/src/xml/notification.xml b/addons/web/static/src/xml/notification.xml index 592c3ee23b0..03ff4cd637b 100644 --- a/addons/web/static/src/xml/notification.xml +++ b/addons/web/static/src/xml/notification.xml @@ -4,23 +4,27 @@
-
+ + + +
- +
-
+
+ class="mr-auto o_notification_content"/> +