İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
11106 Görünümler
<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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

It's work for me. Thank you @Alex

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Şub 21
1821
1
Haz 25
24763
2
Tem 22
4053
1
Mar 22
2221
1
Eyl 21
3674