def METHOD_NAME(self, view_arch):
    """Adapt the attrs of elements in the view with 'pricelist' delivery type"""
    doc = etree.XML(view_arch)
    # hide all these fields and buttons for delivery providers which have already
    # an attrs with a domain we can't extend...
    self._add_pricelist_domain(
        doc, "//button[@name='toggle_prod_environment']", "invisible"
    )
    self._add_pricelist_domain(doc, "//button[@name='toggle_debug']", "invisible")
    self._add_pricelist_domain(
        doc, "//field[@name='integration_level']", "invisible"
    )
    self._add_pricelist_domain(doc, "//field[@name='invoice_policy']", "invisible")
    new_view = etree.tostring(doc, encoding="unicode")
    return new_view