Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
11245 Visninger
<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
Kassér
Bedste svar

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
Kassér
Forfatter

It's work for me. Thank you @Alex

Related Posts Besvarelser Visninger Aktivitet
0
feb. 21
1907
1
jun. 25
25097
2
jul. 22
4240
1
mar. 22
2376
1
sep. 21
3883