Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
4471 Visualizações

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
4
jul. 23
2717
1
fev. 25
10881
1
mar. 21
7124
2
jul. 17
4046
1
set. 22
3113