Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3904 Lượt xem

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. 

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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 .

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 9 21
5185
0
thg 11 21
2527
8
thg 3 20
4554
0
thg 10 19
3324
0
thg 10 19
3861