Skip to Content
Menu
This question has been flagged
1 Atsakyti
11221 Rodiniai
<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.
Portretas
Atmesti
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>
Portretas
Atmesti
Autorius

It's work for me. Thank you @Alex

Related Posts Replies Rodiniai Veikla
0
vas. 21
1894
1
birž. 25
25039
2
liep. 22
4209
1
kov. 22
2362
1
rugs. 21
3850