Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
11333 Widoki
<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.
Awatar
Odrzuć
Najlepsza odpowiedź

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>
Awatar
Odrzuć
Autor

It's work for me. Thank you @Alex

Powiązane posty Odpowiedzi Widoki Czynność
0
lut 21
2001
1
cze 25
25325
2
lip 22
4306
1
mar 22
2477
1
wrz 21
3962