コンテンツへスキップ
メニュー
この質問にフラグが付けられました
5623 ビュー

We have a onetomany called x_mainid added to the res.partner model, which is related to the another model called x_maintenance. We need to filter the maintenance records being show on the partner screen, as they are being shown as a onetomany field list within a page on the partner screen.

For example, within the model x_maintenance there is field called archive. It is a bolean that is ticked to archive the maintenance information. The idea being is that we want to filter the list within the partner screen. Not showing any records that are ticked as archive.

I assume I need to use domain facility, but not sure where.

アバター
破棄
著作者

Ok answer this myself, worked it out. I am VERY surprised no-one else has mentioned this. Within the screen, on the onetomany field, I added a domain to the field in the other table. This filtered my results..

関連投稿 返信 ビュー 活動
2
2月 17
7846
3
7月 25
4424
0
5月 25
927
2
3月 24
2174
3
9月 23
8952