Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1735 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
ott 25
2779
1
set 25
2787
3
lug 25
4156
1
mag 25
2253
4
mag 25
3606