[FIX] account_statement_base: Allow remove lines from bank statment form view

Fixes https://github.com/OCA/account-reconcile/issues/697

TT50906
pull/739/head
Víctor Martínez 2024-10-04 09:58:04 +02:00 committed by Duy (Đỗ Anh)
parent 234cbfbdb5
commit 729e4737a5
1 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,13 @@ from odoo import models
class AccountBankStatementLine(models.Model):
_inherit = "account.bank.statement.line"
# TODO: Delete if merged https://github.com/odoo/odoo/pull/182497
def _compute_running_balance(self):
# We need to set value to all records because super() does not do it using sql.
for item in self:
item.running_balance = item.running_balance
return super()._compute_running_balance()
def action_open_journal_entry(self):
self.ensure_one()
if not self: