跳至內容
選單
此問題已被標幟
1 回覆
4912 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
1月 22
18496
3
7月 19
5402
4
11月 20
7871
1
8月 20
3904
0
11月 18
2500