[FIX] attachement: display error message (removed inexistant template) and redraw the window (to avoid getting stucked)

bzr revid: mat@openerp.com-20140129141438-3883hhzdiwyoo19t
This commit is contained in:
Martin Trigaux 2014-01-29 15:14:38 +01:00
parent 8a0f1b2495
commit 3a07e0a012
1 changed files with 2 additions and 1 deletions

View File

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