From 3a07e0a012a6914a532dfba7072c2a65e0c3627a Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Wed, 29 Jan 2014 15:14:38 +0100 Subject: [PATCH] [FIX] attachement: display error message (removed inexistant template) and redraw the window (to avoid getting stucked) bzr revid: mat@openerp.com-20140129141438-3883hhzdiwyoo19t --- addons/web/static/src/js/views.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 21ff627c544..1c5850d6151 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -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([]);