[REM] misleading (and incorrect) validation message after import failure due to server error

lp bug: https://launchpad.net/bugs/898547 fixed

bzr revid: xmo@openerp.com-20111201110007-sy3fj347ga7pj7d8
This commit is contained in:
Xavier Morel 2011-12-01 12:00:07 +01:00
parent 19d9cc0481
commit a724dbfd1f
2 changed files with 2 additions and 1 deletions

View File

@ -199,6 +199,7 @@ openerp.web.DataImport = openerp.web.Dialog.extend({
result_node.append(QWeb.render('ImportView.error', {
'error': results['error']}));
this.$element.find('fieldset').removeClass('oe-closed');
return;
} else if (results['success']) {
if (this.widget_parent.widget_parent.active_view == "list") {
this.widget_parent.reload_content();

View File

@ -1684,7 +1684,7 @@
</table>
</t>
<t t-name="ImportView.error">
<p style="white-space:pre-line;">The import failed due to:<t t-esc="error.message"/></p>
<p style="white-space:pre;">The import failed due to:<t t-esc="error.message"/></p>
<t t-if="error.preview">
<p>Here is a preview of the file we could not import:</p>
<pre><t t-esc="error.preview"/></pre>