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

Searchview : How to desactivate the default filter when using a field ?

By
Axel Marbois
on 6/28/16, 5:00 AM 263 views

Hello everybody, I'm using Odoo 9 (i'm a very beginner) and I have a question about the mail module, particularly the contacts view.

When I get on the page, I want to see only the companies. I managed to do this adding a <field name="context"> xml tag, which adds a default filter on companies.

But now, what I want is that, when I type a name (and so, I use a field), it displays not only the company asked but also the persons that are related to what I typed.

I thought about two possibilities but I can't manage to realize them :

-The first one is that, when I type enter, it applies my field but also a filter that adds the persons (and, then, that cancels the effect of the "company filter").

-The second one is that, when I type enter, it deletes my company filter.

I don't know if those propositions are good solutions, maybe I'm heading in the wrong direction. But if they are, how can I manage to realize them, what do I need to change in the Python or JS code (or even just XML maybe) ? And if it's not the right solution, could you help me finding one ?

Thank you for your help and your attention,

Axel

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

1 follower(s)

Stats

Asked: 6/28/16, 5:00 AM
Seen: 263 times
Last updated: 6/28/16, 5:52 AM