diff options
| author | Julien Mougenot <jum@odoo.com> | 2020-06-12 09:01:44 +0000 |
|---|---|---|
| committer | Julien Mougenot <jum@odoo.com> | 2020-06-12 09:01:50 +0000 |
| commit | c4786fccfd23360a02e442c48ae2fb9f1e70aa4c (patch) | |
| tree | 95434422bfecf324a2112fadfc078a9bced134e7 /addons/web/static/src/js/views/list | |
| parent | d093fd4236a7c7f18645a85970cbdda6fec44c92 (diff) | |
[IMP] *: update notifications to optional title
closes odoo/odoo#52826
Related: odoo/enterprise#11084
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/list')
| -rw-r--r-- | addons/web/static/src/js/views/list/list_controller.js | 6 | ||||
| -rw-r--r-- | addons/web/static/src/js/views/list/list_renderer.js | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/addons/web/static/src/js/views/list/list_controller.js b/addons/web/static/src/js/views/list/list_controller.js index 800a09f32be..709deced4df 100644 --- a/addons/web/static/src/js/views/list/list_controller.js +++ b/addons/web/static/src/js/views/list/list_controller.js @@ -287,10 +287,10 @@ var ListController = BasicController.extend({ }); if (resIds.length === session.active_ids_limit) { const msg = _.str.sprintf( - _t("Of the %d records selected, only the first %d have been deleted."), - state.count, resIds.length + _t("Only the first %d records have been deleted (out of %d selected)"), + resIds.length, state.count ); - this.do_notify(_t('Warning'), msg); + this.do_notify(false, msg); } this.reload(); }; diff --git a/addons/web/static/src/js/views/list/list_renderer.js b/addons/web/static/src/js/views/list/list_renderer.js index 5fb716e48dc..c2c57250022 100644 --- a/addons/web/static/src/js/views/list/list_renderer.js +++ b/addons/web/static/src/js/views/list/list_renderer.js @@ -586,7 +586,7 @@ var ListRenderer = BasicRenderer.extend({ if (node.attrs.options.warn) { $button.on("click", function (e) { e.stopPropagation(); - self.do_warn(_t("Warning"), _t('Please click on the "save" button first.')); + self.do_warn(false, _t('Please click on the "save" button first')); }); } else { $button.prop('disabled', true); |
