Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
11248 Weergaven
<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
Annuleer
Beste antwoord

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
Annuleer
Auteur

It's work for me. Thank you @Alex

Gerelateerde posts Antwoorden Weergaven Activiteit
0
feb. 21
1909
1
jun. 25
25100
2
jul. 22
4243
1
mrt. 22
2380
1
sep. 21
3887