def METHOD_NAME(self):
    self.ensure_one()
    title = ""
    if self.fiscal_type in ("sale", "purchase"):
        title = (
            _("Bills to pay")
            if self.fiscal_type == "purchase"
            else _("Invoices owed to you")
        )
    number_2confirm = self._get_number_2confirm_documents()
    number_authorized = self._get_authorized_documents()
    number_cancelled = self._get_cancelled_documents()
    return {
        "number_2confirm": number_2confirm,
        "number_authorized": number_authorized,
        "number_cancelled": number_cancelled,
        "title": title,
    }