Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
11475 Tampilan
<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
Buang
Jawaban Terbai

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
Buang
Penulis

It's work for me. Thank you @Alex

Post Terkait Replies Tampilan Aktivitas
0
Feb 21
2083
1
Jun 25
25797
2
Jul 22
4532
1
Mar 22
2683
1
Sep 21
4196