mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] Recompute statement end balance at the end of the import.
Otherwise, it may be "stuck" with an old balance and appearing as red to the user.
This commit is contained in:
@@ -842,7 +842,10 @@ class banking_import(osv.osv_memory):
|
||||
i += 1
|
||||
|
||||
results.stat_loaded_cnt += 1
|
||||
|
||||
|
||||
#recompute statement end_balance for validation
|
||||
statement_obj.button_dummy(cursor, uid, imported_statement_ids)
|
||||
|
||||
if payment_lines:
|
||||
# As payments lines are treated as individual transactions, the
|
||||
# batch as a whole is only marked as 'done' when all payment lines
|
||||
|
||||
Reference in New Issue
Block a user