mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] exception when no suitable period found
This commit is contained in:
@@ -385,6 +385,9 @@ def _banking_import_statements_file(self, cursor, uid, data, context):
|
||||
period_id = get_period(pool, cursor, uid,
|
||||
transaction.effective_date, company,
|
||||
log)
|
||||
if not period_id:
|
||||
no_trans_skipped += 1
|
||||
continue
|
||||
|
||||
# Credit means payment... isn't it?
|
||||
if transaction.transferred_amount < 0 and payment_lines:
|
||||
|
||||
Reference in New Issue
Block a user