Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Filter on onetomany list

By
Dave Ellison
on 11/15/13, 9:15 AM 979 views

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

Dave Ellison
on 11/19/13, 4:53 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 11/15/13, 9:15 AM
Seen: 979 times
Last updated: 3/16/15, 8:10 AM