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

hello guys i have a model A and B

in model A have relation one2many to model B, in model B we have field active, but everytime field active in model B is false, it will not displayed in one2many field in model A, can you tell me how to show it, i want to show all record even if they active or not

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

Hi,

You can get it by passing active_test False in the context,

'active_test': False

Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 22
18530
3
thg 7 19
5417
4
thg 11 20
7909
1
thg 8 20
3961
0
thg 11 18
2513