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_problem_description

View 19.0 View 20.0
Inputs Method Outputs
  • is_valid
  • is_complete
  • balance_end
  • currency_id
  • balance_start
for stmt in self:
            description = None
            if not stmt.is_valid:
-                 description = _("The starting balance doesn't match the ending balance of the previous statement, or an earlier statement is missing.")
+                 description = self.env._(
+                     'Initial balance (%s) does not match previous statement',
+                     formatLang(self.env, stmt.balance_start, currency_obj=stmt.currency_id),
+                 )
            elif not stmt.is_complete:
-                 description = _("The running balance (%s) doesn't match the specified ending balance.", formatLang(self.env, stmt.balance_end, currency_obj=stmt.currency_id))
+                 description = self.env._(
+                     'Incorrect ending balance, expected %s',
+                     formatLang(self.env, stmt.balance_end, currency_obj=stmt.currency_id),
+                 )
            stmt.problem_description = description
  • problem_description

Back to entity