2
votes

I am trying inherit base.user_groups_view and base.view_users_form to hide some information which is not useful in my case.

base.view_users_form

I want to hide Preferences tab completely but this page have a string and doesn't have a name attribute that's why when i try to find out this page it says cannot locate in parent view and if i try to search using string attribute it says View inheritance may not use attribute 'string' as a selector.

base.view_users_form

Same a above when i try to hide Application spearator it says View inheritance may not use attribute 'string' as a selector.

How to hide these when we are in inherited view

Edit

I am using Odoo 10 Enterprise

1

1 Answers

3
votes

In odoo 9 it is impossible to use 'string' in xpath expressions. In your case you should use an index. For example:

<xpath expr="//page[3]">
    <!-- your code -->
</xpath>

This will search the third element that is a page in your view.

You could visit: xpath_string for more information.

I hope this help you!