Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4087 Weergaven

I'm trying to create a customer dropdown field on a form. In addition to the ability to search a customer by name the users should be able to search a customer by their internal reference (field 'ref' in res.partner). This would be trivial in a search view by using

filter_domain="['|', ('name', 'ilike', self), ('ref', 'ilike', self)]"

as the filter_domain, but it seems that in the form view the filter_domain attribute of the xml field definition is ignored.

Is there any way around this other than overriding the name_search() method?

 

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
4
jul. 23
2236
1
feb. 25
10388
1
mrt. 21
6817
2
jul. 17
3711
1
sep. 22
2692