Merge pull request #76 from florian-dacosta/7.0-multi-statement-escape

check statement_id exist before adding it to the list we return
This commit is contained in:
Yannick Vaucher
2015-01-14 14:21:26 +01:00

View File

@@ -167,7 +167,8 @@ class AccountStatementProfil(orm.Model):
statement_id = self._statement_import(
cr, uid, ids, prof, parser, file_stream, ftype=ftype,
context=context)
res.append(statement_id)
if statement_id:
res.append(statement_id)
return res
def _statement_import(self, cr, uid, ids, prof, parser, file_stream,