mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
check statement_id exist before adding it to the list we return
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user