Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
5637 Visualizzazioni

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.

Avatar
Abbandona
Autore

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..

Post correlati Risposte Visualizzazioni Attività
2
feb 17
7873
3
lug 25
4433
0
mag 25
936
2
mar 24
2181
3
set 23
8955