Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
11216 Zobrazení
<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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

It's work for me. Thank you @Alex

Related Posts Odpovědi Zobrazení Aktivita
0
úno 21
1894
1
čvn 25
25039
2
čvc 22
4209
1
bře 22
2362
1
zář 21
3849