summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/helpers/test_utils.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2019-04-18 10:01:40 +0000
committerqsm-odoo <qsm@odoo.com>2019-04-24 13:21:41 +0000
commitb94395b50175925fc7d1bd3655e5facb78a8ba2b (patch)
treea6a3a20555ece8dcff22ffbd9cd27170b839e2ea /addons/web/static/tests/helpers/test_utils.js
parent09c3df17cd940a8d1bda4cc265ef5f24e3aa8ecc (diff)
[IMP] web, *: share and improve notification system
* barcodes, calendar, partner_autocomplete, web_settings_dashboard Make the notification system better, using bootstrap toast component, and make it available in the frontend. The toast component allowed to remove some JS code and made the component customizable by themes but it had to be reviewed/fixed to make it functional (maybe bootstrap will review its work in next versions). This work should still be improved because there are still too many ways (deprecated and not deprecated) to instantiate toasts in the backend. The goal here was however to make the toasts more modern and make them available in the frontend. This work is needed for some tasks. @kig-odoo and @fja-odoo made a pre-work to instantiate toasts in the frontend for their respective tasks. This commit unifies the system. Part of https://github.com/odoo/odoo/pull/32793 task-1970731 closes odoo/odoo#32793 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web/static/tests/helpers/test_utils.js')
-rw-r--r--addons/web/static/tests/helpers/test_utils.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/tests/helpers/test_utils.js b/addons/web/static/tests/helpers/test_utils.js
index ccf5d8daf6b..d30eed7cf89 100644
--- a/addons/web/static/tests/helpers/test_utils.js
+++ b/addons/web/static/tests/helpers/test_utils.js
@@ -102,7 +102,8 @@ async function nextTick() {
// to load xml files that are normally lazy loaded by specific widgets).
return Promise.all([
session.is_bound,
- ajax.loadXML('/web/static/src/xml/dialog.xml', core.qweb)
+ ajax.loadXML('/web/static/src/xml/dialog.xml', core.qweb),
+ ajax.loadXML('/web/static/src/xml/notification.xml', core.qweb)
]).then(function () {
setTimeout(function () {
// jquery autocomplete refines the search in a setTimeout() parameterized