summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/chrome
diff options
context:
space:
mode:
authorfja-odoo <fja@odoo.com>2019-08-09 09:58:32 +0000
committerfja-odoo <fja@odoo.com>2019-08-09 15:47:09 +0000
commit20efea970af8d74b06d11d709982429678d35e25 (patch)
tree9485ada7c3945cbaacf8d49305e3a913182b5ea3 /addons/web/static/src/js/chrome
parent79d7904b4f650b38c80239fca38bcec39a373580 (diff)
[IMP] *: display some onchange warning with notif
* = base, web, sale, stock, sale_stock, stock_account Warnings for the onchange now takes a type to know if it needs to be displayed with a notification. Else it is displayed with a dialog notification (like before). Related to https://github.com/odoo/odoo/pull/32132 and https://github.com/odoo/odoo/pull/35209 Part of https://github.com/odoo/odoo/pull/35342 task-2047628 closes odoo/odoo#35342 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/chrome')
-rw-r--r--addons/web/static/src/js/chrome/abstract_web_client.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/js/chrome/abstract_web_client.js b/addons/web/static/src/js/chrome/abstract_web_client.js
index 2d94501deed..cd1109a98ce 100644
--- a/addons/web/static/src/js/chrome/abstract_web_client.js
+++ b/addons/web/static/src/js/chrome/abstract_web_client.js
@@ -396,7 +396,8 @@ var AbstractWebClient = Widget.extend(ServiceProviderMixin, KeyboardNavigationMi
title: data.title,
}, data).open();
} else {
- this.call('notification', 'notify', e.data);
+ data.type = 'warning';
+ this.call('notification', 'notify', data);
}
},
/**