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/fields/basic_fields.js | |
| 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/fields/basic_fields.js')
| -rw-r--r-- | addons/web/static/src/js/fields/basic_fields.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js index 9c04679a0d2..553a79cad20 100644 --- a/addons/web/static/src/js/fields/basic_fields.js +++ b/addons/web/static/src/js/fields/basic_fields.js @@ -1680,7 +1680,7 @@ var AbstractFieldBinary = AbstractField.extend({ }, on_file_uploaded: function (size, name) { if (size === false) { - this.do_warn(_t("File Upload"), _t("There was a problem while uploading your file")); + this.do_warn(false, _t("There was a problem while uploading your file")); // TODO: use crashmanager console.warn("Error while uploading file : ", name); } else { @@ -1823,7 +1823,7 @@ var FieldBinaryImage = AbstractFieldBinary.extend({ $img.one('error', function () { $img.attr('src', self.placeholder); - self.do_warn(_t("Image"), _t("Could not display the selected image.")); + self.do_warn(false, _t("Could not display the selected image")); }); return this._super.apply(this, arguments); @@ -1963,7 +1963,7 @@ var FieldBinaryFile = AbstractFieldBinary.extend({ }, on_save_as: function (ev) { if (!this.value) { - this.do_warn(_t("Save As..."), _t("The field is empty, there's nothing to save !")); + this.do_warn(false, _t("The field is empty, there's nothing to save.")); ev.stopPropagation(); } else if (this.res_id) { framework.blockUI(); @@ -2643,7 +2643,7 @@ var FieldProgressBar = AbstractField.extend({ // Cover all numbers with parseFloat parsedValue = field_utils.parse.float($input.val()); } catch (error) { - this.do_warn(_t("Wrong value entered!"), _t("Only Integer or Float Value should be valid.")); + this.do_warn(false, _t("Please enter a numerical value")); } if (parsedValue !== undefined) { |
