Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
11328 Visualizzazioni
<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
Abbandona
Risposta migliore

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
Abbandona
Autore

It's work for me. Thank you @Alex

Post correlati Risposte Visualizzazioni Attività
0
feb 21
2000
1
giu 25
25321
2
lug 22
4305
1
mar 22
2476
1
set 21
3960