<|endoftext|> Prompt: Create an Odoo model class named AccountBankStatement with is_complete attribute Completion: class AccountBankStatement(models.Model):
    _name = "account.bank.statement"
    _description = "Bank Statement"
    is_complete = fields.Boolean(
        compute='_compute_is_complete', store=True,
    )
    @api.depends('balance_end', 'balance_end_real', 'line_ids.amount', 'line_ids.state')
    def _compute_is_complete(self):
            for stmt in self:
                        stmt.is_complete = stmt.line_ids.filtered(lambda l: l.state == 'posted') and stmt.currency_id.compare_amounts(
                            stmt.balance_end, stmt.balance_end_real) == 0
<|endoftext|>