Browse Source

Merge pull request #43 from hbrunn/8.0-account_bank_statement_import_save_file-init_hook_no_attachments

[FIX] don't error out if there are no attachments
pull/47/head
Pedro M. Baeza 9 years ago
parent
commit
e22c71057f
  1. 3
      account_bank_statement_import_save_file/hooks.py

3
account_bank_statement_import_save_file/hooks.py

@ -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()]
if not attachment_ids:
return
# assign respective attachment to all statements pointing to an imported
# banking file
cr.execute(

Loading…
Cancel
Save