[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:
Dmitrijs Ledkovs
2011-11-09 17:10:28 +00:00
parent 278ac4150f
commit 1bc8b1079c

View File

@@ -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