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

i want to set a filter option in the search part, i know how to do a filter or group.


when the user write one letter, can view the new option, like this
https://gyazo.com/9fd55a905680d261657529673242e51e

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

Hi Jorge:

Add a <field..../>with a filter_domain. "self" is the value that the user types in the search box.

For example,

<field name="name" filter_domain="['|', ('name','ilike',self), ('field_description','ilike',self)]" string="Field"/>

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 10 25
2858
1
thg 9 25
2852
3
thg 7 25
4197
1
thg 5 25
2293
4
thg 5 25
3642