Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
11212 Prikazi
<xpath expr="//field[@name='coach_id']" position="after">
<field name="manager" groups="base.group_no_one"/>
</xpath>
I want to add custom group on manager field by xpath.
Avatar
Opusti
Best Answer

That should work if manager isn't yet defined on your view. If manager is already defined on a previous view, you should alter the attributes section of the field.

<xpath expr="//field[@name='manager']" position="attributes">
    <attribute name="groups">base.group_no_one</attribute>
</xpath>
Avatar
Opusti
Avtor

It's work for me. Thank you @Alex

Related Posts Odgovori Prikazi Aktivnost
0
feb. 21
1894
1
jun. 25
25037
2
jul. 22
4209
1
mar. 22
2362
1
sep. 21
3849