mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
don't error out if there are no attachments
This commit is contained in:
committed by
Alexis de Lattre
parent
92148520fe
commit
2f29b23ced
@@ -56,6 +56,9 @@ def _post_init_hook_migrate_account_banking_imported_file(cr, pool):
|
|||||||
|
|
||||||
attachment_ids = [attachment_id for attachment_id, in cr.fetchall()]
|
attachment_ids = [attachment_id for attachment_id, in cr.fetchall()]
|
||||||
|
|
||||||
|
if not attachment_ids:
|
||||||
|
return
|
||||||
|
|
||||||
# assign respective attachment to all statements pointing to an imported
|
# assign respective attachment to all statements pointing to an imported
|
||||||
# banking file
|
# banking file
|
||||||
cr.execute(
|
cr.execute(
|
||||||
|
|||||||
Reference in New Issue
Block a user