Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5884 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 10 20
8827
0
thg 3 15
3407
1
thg 2 25
950
3
thg 2 24
10263
1
thg 11 23
2724