[IMP] attachement: remove unnecessary redraw added at rev 4128 and change message to be the same than in mail

bzr revid: mat@openerp.com-20140131102836-e89xo4nrwk32uij8
This commit is contained in:
Martin Trigaux 2014-01-31 11:28:36 +01:00
parent ff8f5104b1
commit 23de024718
1 changed files with 1 additions and 2 deletions

View File

@ -1217,8 +1217,7 @@ instance.web.Sidebar = instance.web.Widget.extend({
this.dataset = dataset;
this.model_id = model_id;
if (args && args[0].error) {
this.do_warn(_t('Upload Error'), args[0].error);
self.redraw();
this.do_warn(_t('Uploading Error'), args[0].error);
}
if (!model_id) {
this.on_attachments_loaded([]);