Skip to content

Commit

Permalink
Merge PR #759 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Dec 1, 2024
2 parents 80dfdc7 + 2e2dbfa commit c9ac85c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions account_statement_base/models/account_bank_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,12 @@ def open_entries(self):
("statement_id", "=", self.id),
],
}

def _compute_balance_end(self):
# Consider new lines amount in the balance
# Remove if merged: https://github.com/odoo/odoo/pull/188675
res = super()._compute_balance_end()
for stmt in self:
lines = stmt.line_ids.filtered(lambda x: not x._origin)
stmt.balance_end += sum(lines.mapped("amount"))
return res

0 comments on commit c9ac85c

Please sign in to comment.