summaryrefslogtreecommitdiff
path: root/addons/barcodes/static/tests
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/barcodes/static/tests
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/barcodes/static/tests')
-rw-r--r--addons/barcodes/static/tests/barcode_tests.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/barcodes/static/tests/barcode_tests.js b/addons/barcodes/static/tests/barcode_tests.js
index 47a53402b14..92b5604f622 100644
--- a/addons/barcodes/static/tests/barcode_tests.js
+++ b/addons/barcodes/static/tests/barcode_tests.js
@@ -562,7 +562,7 @@ QUnit.test('barcode_scanned only trigger error for active view', async function
}
_.each(['O','-','B','T','N','.','c','a','n','c','e','l','Enter'], modalTriggerKeypressEvent);
await testUtils.nextTick();
- assert.verifySteps(['warning'], "only one event should be triggered");
+ assert.verifySteps(['danger'], "only one event should be triggered");
form.destroy();
});
});