From cf6b95e613184ebaad852252f790b99b9ec3d599 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Fri, 7 Dec 2012 10:28:06 +0100 Subject: [PATCH] [IMP] mail: message error when the user must wait his attachment uploading bzr revid: chm@openerp.com-20121207092806-w20k150gnvs4hufj --- addons/mail/static/src/js/mail.js | 2 +- addons/mail/static/src/xml/mail.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index e1625089a51..99330e7a3df 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -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; diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index f10770a27e1..5e978e9d5b3 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -183,6 +183,7 @@ error message for uploading --> Uploading error + Please, wait while the file is uploading.