跳至内容
菜单
此问题已终结
1 回复
4920 查看

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
18503
3
7月 19
5408
4
11月 20
7878
1
8月 20
3926
0
11月 18
2503