跳至內容
選單
此問題已被標幟
1 回覆
1727 瀏覽次數

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

頭像
捨棄
最佳答案

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"/>

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
10月 25
2774
1
9月 25
2783
3
7月 25
4152
1
5月 25
2248
4
5月 25
3596