def METHOD_NAME(
    self,
    page=1,
    date_begin=None,
    date_end=None,
    sortby=None,
    search="",
    search_in="name",
    **kw
):
    values = self._prepare_portal_layout_values()
    DeliveryNote = request.env["stock.delivery.note"]
    searchbar_sortings = {
        "date": {"label": _("Delivery Note Date"), "order": "date desc"},
        "name": {"label": _("Delivery Note #"), "order": "name"},
    }
    searchbar_inputs = {
        "name": {
            "input": "name",
            "label": _('Search <span class="nolabel"> Name</span>'),
            "domain": [("name", "ilike", search)],
        },
    }
    search_domain = searchbar_inputs[search_in]["domain"] if search_in else []
    # default sortby order
    if not sortby:
        sortby = "date"
    sort_order = searchbar_sortings[sortby]["order"]
    # count for pager
    dn_count = DeliveryNote.search_count(
        self._get_delivery_note_domain(search_domain)
    )
    # make pager
    pager = portal_pager(
        url="/my/delivery-notes",
        url_args={"sortby": sortby, "search_in": search_in, "search": "search"},
        total=dn_count,
        page=page,
        step=self._items_per_page,
    )
    # search the count to display, according to the pager data
    delivery_note = DeliveryNote.search(
        self._get_delivery_note_domain(search_domain),
        order=sort_order,
        limit=self._items_per_page,
        offset=pager["offset"],
    )
    values.update(
        {
            "date": date_begin,
            "delivery_notes": delivery_note,
            "page_name": "delivery_notes",
            "pager": pager,
            "default_url": "/my/delivery-notes",
            "searchbar_sortings": searchbar_sortings,
            "searchbar_inputs": searchbar_inputs,
            "search_in": search_in,
            "search": search,
            "sortby": sortby,
        }
    )
    return request.render("l10n_it_delivery_note.portal_my_delivery_notes", values)