summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/widgets/domain_selector.js
diff options
context:
space:
mode:
authorJulien Mougenot <jum@odoo.com>2020-06-12 09:01:44 +0000
committerJulien Mougenot <jum@odoo.com>2020-06-12 09:01:50 +0000
commitc4786fccfd23360a02e442c48ae2fb9f1e70aa4c (patch)
tree95434422bfecf324a2112fadfc078a9bced134e7 /addons/web/static/src/js/widgets/domain_selector.js
parentd093fd4236a7c7f18645a85970cbdda6fec44c92 (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/widgets/domain_selector.js')
-rw-r--r--addons/web/static/src/js/widgets/domain_selector.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/addons/web/static/src/js/widgets/domain_selector.js b/addons/web/static/src/js/widgets/domain_selector.js
index 755ee32979e..9fe71ce163f 100644
--- a/addons/web/static/src/js/widgets/domain_selector.js
+++ b/addons/web/static/src/js/widgets/domain_selector.js
@@ -535,10 +535,7 @@ var DomainSelector = DomainTree.extend({
// Warn the user if the domain is not valid after rendering
if (!this._isValid) {
- this.do_warn(
- _t("Domain error"),
- _t("The domain you entered is not properly formed")
- );
+ this.do_warn(false, _t("Domain not supported"));
}
},
/**
@@ -583,7 +580,7 @@ var DomainSelector = DomainTree.extend({
try {
domain = Domain.prototype.stringToArray($(e.currentTarget).val());
} catch (err) { // If there is a syntax error, just ignore the change
- this.do_warn(_t("Syntax error"), _t("The domain you entered is not properly formed"));
+ this.do_warn(_t("Syntax error"), _t("Domain not properly formed"));
return;
}
this._redraw(domain).then((function () {