Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

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
Buang
Post Terkait Replies Tampilan Aktivitas
4
Jul 23
2214
1
Feb 25
10362
1
Mar 21
6762
2
Jul 17
3689
1
Sep 22
2672