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

Inputs Method Outputs
for stmt in self:
            description = None
            if not stmt.is_valid:
                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 = self.env._(
                    'Incorrect ending balance, expected %s',
                    formatLang(self.env, stmt.balance_end, currency_obj=stmt.currency_id),
                )
            stmt.problem_description = description

Back to entity