Skip to Content
मेन्यू
This question has been flagged
1 Reply
11225 Views
<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
Discard
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
Discard
Author

It's work for me. Thank you @Alex

Related Posts Replies Views Activity
0
फ़र॰ 21
1896
1
जून 25
25046
2
जुल॰ 22
4210
1
मार्च 22
2362
1
सित॰ 21
3858