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/widgets/attach_document.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/widgets/attach_document.js')
| -rw-r--r-- | addons/web/static/src/js/widgets/attach_document.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/widgets/attach_document.js b/addons/web/static/src/js/widgets/attach_document.js index a4a72a62765..8ad48882ac2 100644 --- a/addons/web/static/src/js/widgets/attach_document.js +++ b/addons/web/static/src/js/widgets/attach_document.js @@ -62,7 +62,7 @@ var AttachDocument = Widget.extend({ }); warnings.unshift('<ul>'); warnings.push('</ul>'); - this.do_warn(_t("The following fields are invalid:"), warnings.join('')); + this.do_warn(_t("Invalid fields:"), warnings.join('')); }, //-------------------------------------------------------------------------- @@ -87,7 +87,7 @@ var AttachDocument = Widget.extend({ // but due to this security restriction give warning to save record first. // https://stackoverflow.com/questions/29728705/trigger-click-on-input-file-on-asynchronous-ajax-done/29873845#29873845 if (!this.res_id) { - return this.do_warn(_t('Warning : You have to save first before attaching a file.')); + return this.do_warn(false, _t('Please save before attaching a file')); } this.$('input.o_input_file').trigger('click'); }, |
