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

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

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

'active_test': False

Thanks

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ม.ค. 22
18553
3
ก.ค. 19
5458
4
พ.ย. 20
7937
1
ส.ค. 20
3976
0
พ.ย. 18
2521