def METHOD_NAME(cls):
    super().METHOD_NAME()
    cls.a_income = cls.env["account.account"].create(
        {
            "code": "TIA",
            "name": "Test Income Account",
            "user_type_id": cls.env.ref("account.data_account_type_revenue").id,
        }
    )
    cls.partner = cls.env["res.partner"].create({"name": "Test Partner 2"})
    cls.sale_journal = cls.env["account.journal"].create(
        {"name": "Test Sale Journal", "type": "sale", "code": "Test"}
    )
    cls.bank_journal = cls.env["account.journal"].create(
        {"name": "Test Bank Journal", "type": "bank"}
    )
    move_form = Form(
        cls.env["account.move"].with_context(
            default_move_type="out_invoice", default_journal_id=cls.sale_journal.id
        )
    )
    move_form.partner_id = cls.partner
    with move_form.invoice_line_ids.new() as line_form:
        line_form.name = "Test line"
        line_form.account_id = cls.a_income
        line_form.quantity = 1.0
        line_form.price_unit = 100.00
    cls.invoice = move_form.save()
    cls.payment_mode = cls.env["account.payment.mode"].create(
        {
            "name": "Test payment mode",
            "fixed_journal_id": cls.bank_journal.id,
            "bank_account_link": "fixed",
            "payment_method_id": cls.env.ref(
                "account.account_payment_method_manual_in"
            ).id,
        }
    )
    cls.payment_order = cls.env["account.payment.order"].create(
        {
            "payment_mode_id": cls.payment_mode.id,
            "date_prefered": "due",
            "payment_type": "inbound",
        }
    )