On views with a searchpanel, xpath `//field[last()]` may select an element inside
the search panel, provoking the error "Only types ['many2one'] are supported for
category (found type text)".
This fix uses an stricter xpath for avoiding this situation.
TT25796