[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:
parent
8a0f1b2495
commit
3a07e0a012
|
@ -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([]);
|
||||
|
|
Loading…
Reference in New Issue