def METHOD_NAME(cls, chart_template_ref=None):
    super().METHOD_NAME(chart_template_ref=chart_template_ref)
    cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))
    cls.company = cls.company_data["company"]
    cls.env.user.company_id = cls.company.id
    cls.res_partner_bank_model = cls.env["res.partner.bank"]
    cls.payment_mode_model = cls.env["account.payment.mode"]
    cls.payment_order_model = cls.env["account.payment.order"]
    cls.payment_line_model = cls.env["account.payment.line"]
    cls.res_partner_pix_model = cls.env["res.partner.pix"]
    cls.bank_001 = cls.env.ref("l10n_br_base.res_bank_001")
    cls.res_partner_pix_model.create(
        {
            "partner_id": cls.partner_a.id,
            "key_type": "phone",
            "key": "+50372424737",
        }
    )
    cls.outbound_payment_method = cls.env.ref(
        "l10n_br_account_payment_order.payment_mode_type_cnab240_out"
    )
    cls.pix_mode = cls.payment_mode_model.create(
        {
            "bank_account_link": "variable",
            "name": "Pix Transfer",
            "company_id": cls.company.id,
            "payment_method_id": cls.outbound_payment_method.id,
            "payment_mode_domain": "pix_transfer",
            "payment_order_ok": True,
            "variable_journal_ids": cls.company_data["default_journal_bank"],
        }
    )
    cls.ted_mode = cls.payment_mode_model.create(
        {
            "bank_account_link": "variable",
            "name": "TED Transfer",
            "company_id": cls.company.id,
            "payment_method_id": cls.outbound_payment_method.id,
            "payment_mode_domain": "ted",
            "payment_order_ok": True,
            "variable_journal_ids": cls.company_data["default_journal_bank"],
        }
    )
    cls.invoice = cls.env["account.move"].create(
        {
            "partner_id": cls.partner_a.id,
            "move_type": "in_invoice",
            "ref": "Test Bill Invoice 1",
            "invoice_date": fields.Date.today(),
            "company_id": cls.company.id,
            "payment_mode_id": cls.pix_mode.id,
            "journal_id": cls.company_data["default_journal_purchase"].id,
            "invoice_line_ids": [
                (
                    0,
                    0,
                    {
                        "product_id": cls.product_a.id,
                        "quantity": 1.0,
                        "price_unit": 300.0,
                    },
                )
            ],
        }
    )
    # Make sure no other payment orders are in the DB
    cls.domain = [
        ("state", "=", "draft"),
        ("payment_type", "=", "outbound"),
        ("company_id", "=", cls.company.id),
    ]
    cls.payment_order_model.search(cls.domain).unlink()