summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorfja-odoo <fja@odoo.com>2019-06-11 12:26:57 +0000
committerfja-odoo <fja@odoo.com>2019-06-28 08:53:53 +0000
commit283f8fed6e85f2df0386de46138129b4cadc52d7 (patch)
tree296f46e0038125cf3b6a2e17b0c8d889f8c8dcac /addons/web/static/src/xml
parent0d1407a715901ea06e9a7211c0e3dbe09fadb785 (diff)
[IMP] web, *: display rpc warnings with toasts
* = test_website, partner_autocomplete - All the rpc warnings are now displayed using the notification system of https://github.com/odoo/odoo/commit/b94395b50175925fc7d1bd3655e5facb78a8ba2b - test_website is up to date Part of https://github.com/odoo/odoo/pull/32132 task-1894820
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/notification.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/notification.xml b/addons/web/static/src/xml/notification.xml
index 3ffe9e8979a..592c3ee23b0 100644
--- a/addons/web/static/src/xml/notification.xml
+++ b/addons/web/static/src/xml/notification.xml
@@ -16,7 +16,9 @@
<span class="d-inline" aria-hidden="true">&amp;times;</span>
</button>
</div>
- <div t-if="widget.message or widget.buttons.length" class="toast-body">
+ <div t-if="widget.message or widget.subtitle or widget.buttons.length" class="toast-body">
+ <strong t-if="widget.subtitle" t-raw="widget.subtitle"
+ class="o_notification_subtitle"/>
<div t-if="widget.message" t-raw="widget.message"
class="o_notification_content"/>
<div t-if="widget.buttons.length" class="mt-2 o_notification_buttons">