def METHOD_NAME(self):
    super().METHOD_NAME()
    self.test_customer = self.env["res.partner"].create({"name": "TestCustomer"})
    self.agreement_type = self.env["agreement.type"].create(
        {
            "name": "Test Agreement Type",
            "domain": "sale",
        }
    )
    self.test_account_analytic_account = self.env[
        "account.analytic.account"
    ].create({"name": "Test Analytic Account"})
    self.test_agreement_template = self.env["agreement"].create(
        {
            "name": "TestAgreementTemplate",
            "description": "Test Template",
            "special_terms": "Test Template",
            "is_template": True,
            "partner_id": self.test_customer.id,
            "start_date": fields.Date.today(),
            "end_date": fields.Date.today() + timedelta(days=365),
            "analytic_account_id": self.test_account_analytic_account.id,
        }
    )
    self.test_agreement_template_no_analytic_account_id = self.env[
        "agreement"
    ].create(
        {
            "name": "TestAgreementTemplate A",
            "description": "Test Template",
            "special_terms": "Test Template",
            "is_template": True,
            "partner_id": self.test_customer.id,
            "start_date": fields.Date.today(),
            "end_date": fields.Date.today() + timedelta(days=365),
        }
    )
    self.test_product = self.env["product.product"].create({"name": "TestProduct"})
    self.test_sale_order = self.env["sale.order"].create(
        {
            "partner_id": self.test_customer.id,
            "agreement_template_id": self.test_agreement_template.id,
            "date_order": fields.Date.today(),
            "order_line": [
                (0, 0, {"display_type": "line_section", "name": "Test section"}),
                (0, 0, {"display_type": "line_note", "name": "Test note"}),
                (
                    0,
                    0,
                    {"product_id": self.test_product.id, "product_uom_qty": 1.0},
                ),
            ],
        }
    )
    self.test_product_templ_is_serviceprofile = self.env["product.template"].create(
        {"name": "TestProductA", "is_serviceprofile": True}
    )
    self.test_product_is_serviceprofile = self.env["product.product"].create(
        {
            "name": "TestProductA",
            "is_serviceprofile": True,
            "product_tmpl_id": self.test_product_templ_is_serviceprofile.id,
        }
    )
    self.test_sale_order_is_serviceprofile = self.env["sale.order"].create(
        {
            "partner_id": self.test_customer.id,
            "agreement_template_id": self.test_agreement_template.id,
            "date_order": fields.Date.today(),
            "order_line": [
                (0, 0, {"display_type": "line_section", "name": "Test section"}),
                (0, 0, {"display_type": "line_note", "name": "Test note"}),
                (
                    0,
                    0,
                    {
                        "product_id": self.test_product_is_serviceprofile.id,
                        "product_uom_qty": 1.0,
                    },
                ),
            ],
        }
    )
    self.test_agreement = self.env["agreement"].create(
        {
            "name": "TestAgreement A",
            "description": "Test Agreement A",
            "special_terms": "TestAgreement A",
            "start_date": fields.Date.today(),
            "end_date": fields.Date.today() + timedelta(days=365),
        }
    )
    self.test_sale_order_account_analytic_account = self.env["sale.order"].create(
        {
            "partner_id": self.test_customer.id,
            "agreement_template_id": self.test_agreement_template_no_analytic_account_id.id,
            "date_order": fields.Date.today(),
            "agreement_id": self.test_agreement.id,
            "order_line": [
                (0, 0, {"product_id": self.test_product.id, "product_uom_qty": 1.0})
            ],
        }
    )