def METHOD_NAME(self, contract_template):
    self.ensure_one()
    return {
        "name": "{template_name}: {sale_name}".format(
            template_name=contract_template.name, sale_name=self.name
        ),
        "partner_id": self.partner_id.id,
        "company_id": self.company_id.id,
        "contract_template_id": contract_template.id,
        "user_id": self.user_id.id,
        "payment_term_id": self.payment_term_id.id,
        "fiscal_position_id": self.fiscal_position_id.id,
        "invoice_partner_id": self.partner_invoice_id.id,
        "line_recurrence": self.partner_invoice_id.id,
    }