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

How to search custom fields

By
Norbert J
on 5/9/14, 10:52 PM 893 views

Hi,

I have a problem I am trying to solve. I have a customer which wants a couple custom fields added to a customer. One of them is a health card number. They want to be able to do searches on these custom fields. For example, they would like to find all customers which have a health card number that starts with 'abc' or '1234' or equals '12345678'. These numbers would not stay the same. They would like to do searches for any number contained in that field. I did see the filters but these are for constant search parameters such as 'country', 'region' ... Is there any way to do this? Do I have to create a custom module?

I really appreciate the help. I need an answer fairly quickly since my customer has a very tight deadline.

Thank you.

1

Ahmed M.Elmubarak

--Ahmed M.Elmubarak--
2988
| 5 3 5
Sudan
--Ahmed M.Elmubarak--


Ahmed M.Elmubarak
On 5/10/14, 2:23 AM

Hello,

you can use the advance search to search your custom fields. If you want your custom fields appears like name and company, you have to inherit the search view of the res_partner and then add you custom field to the search. You can check this question

I hope this could helps

Regards...

make sure your field is set to searchable in the field parameters

AD LIBITOM, michel Guénard
on 5/11/14, 8:53 PM

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: 5/9/14, 10:52 PM
Seen: 893 times
Last updated: 3/16/15, 8:10 AM