Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Invoicing

Entity: account.bank.statement

Compute Method: _compute_balance_end

View 19.0 View 20.0
Inputs Method Outputs
  • line_ids
  • balance_start
for stmt in self:
-             lines = stmt.line_ids.filtered(lambda x: x.state == 'posted')
+             lines = stmt.line_ids.filtered(lambda x: x.state in {'draft', 'posted'})
            stmt.balance_end = stmt.balance_start + sum(lines.mapped('amount'))
  • balance_end

Back to entity