[IMP] mail: message error when the user must wait his attachment uploading

bzr revid: chm@openerp.com-20121207092806-w20k150gnvs4hufj
This commit is contained in:
Christophe Matthieu 2012-12-07 10:28:06 +01:00
parent f8c206b1b8
commit cf6b95e613
2 changed files with 2 additions and 1 deletions

View File

@ -547,7 +547,7 @@ openerp.mail = function (session) {
/* return true if all file are complete else return false and make an alert */
do_check_attachment_upload: function () {
if (_.find(this.attachment_ids, function (file) {return file.upload;})) {
this.do_warn(session.web._t('Attachment error :'), session.web._t('Please, wait while the file is uploading.'));
this.do_warn(session.web.qweb.render('mail.error_upload'), session.web.qweb.render('mail.error_upload_please_wait'));
return false;
} else {
return true;

View File

@ -183,6 +183,7 @@
error message for uploading
-->
<t t-name="mail.error_upload">Uploading error</t>
<t t-name="mail.error_upload_please_wait">Please, wait while the file is uploading.</t>
<!--
record_thread main template