summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/widgets/model_field_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/model_field_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/model_field_selector.js')
-rw-r--r--addons/web/static/src/js/widgets/model_field_selector.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/addons/web/static/src/js/widgets/model_field_selector.js b/addons/web/static/src/js/widgets/model_field_selector.js
index 8f560be6d39..1856bccfade 100644
--- a/addons/web/static/src/js/widgets/model_field_selector.js
+++ b/addons/web/static/src/js/widgets/model_field_selector.js
@@ -433,8 +433,8 @@ var ModelFieldSelector = Widget.extend({
if (!this.valid) {
this.do_warn(
- _t("Invalid field chain"),
- _t("The field chain is not valid. Did you maybe use a non-existing field name or followed a non-relational field?")
+ false,
+ _t("Invalid field chain. You may have used a non-existing field name or followed a non-relational field.")
);
}
},
@@ -495,7 +495,10 @@ var ModelFieldSelector = Widget.extend({
var userChainStr = this.$input.val();
var userChain = userChainStr.split(".");
if (!this.options.followRelations && userChain.length > 1) {
- this.do_warn(_t("Relation not allowed"), _t("You cannot follow relations for this field chain construction"));
+ this.do_warn(
+ _t("Relation not allowed"),
+ _t("You cannot follow relations for this field chain construction")
+ );
userChain = [userChain[0]];
}
this.setChain(userChain).then((function () {