diff --git a/addons/account/models/account_bank_statement_line.py b/addons/account/models/account_bank_statement_line.py index 47ddec4aa7c93..3ca4a2a612e4c 100644 --- a/addons/account/models/account_bank_statement_line.py +++ b/addons/account/models/account_bank_statement_line.py @@ -176,6 +176,9 @@ def _compute_running_balance(self): # the user can split on that lines, but their balance should be the same as previous posted line # we do the same for the canceled lines, in order to keep using them as anchor points + for record in self: + record.running_balance = 0 + self.statement_id.flush_model(['balance_start', 'first_line_index']) self.flush_model(['internal_index', 'date', 'journal_id', 'statement_id', 'amount', 'state']) record_by_id = {x.id: x for x in self}