Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
11207 Vues
<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
Ignorer
Meilleure réponse

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

It's work for me. Thank you @Alex

Publications associées Réponses Vues Activité
0
févr. 21
1894
1
juin 25
25037
2
juil. 22
4208
1
mars 22
2361
1
sept. 21
3849