Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3948 มุมมอง

I have a one2many field suppose "list_ids" on a from and need to put some filter on that, like there is a filed in my modelA by name field1. Now i want to put a domain filter that field1 is False then it should not be visible otherwise not. But it's not working 


 <field name="list_ids" domain="[('field1','=',False)]" readonly="1"/>


But it's not working, please help. 

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

I found the answer and want to share, it do not work in XML and one2many field, but it worked why you put the same filter in python file at one2many field .

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ก.ย. 21
5230
0
พ.ย. 21
2556
8
มี.ค. 20
5003
0
ต.ค. 19
3350
0
ต.ค. 19
3885