Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
11246 มุมมอง
<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.
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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>
อวตาร
ละทิ้ง
ผู้เขียน

It's work for me. Thank you @Alex

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.พ. 21
1907
1
มิ.ย. 25
25098
2
ก.ค. 22
4241
1
มี.ค. 22
2377
1
ก.ย. 21
3887