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

Hello,

I have added some information in res.partner modules, I would like to select a partner which belongs specific categories.

I can add a domain on the field, but I have to put the id of the category.

e.g

<field name="groupe" placeholder="Groupe" domain="[('category_id', '=', 19)]"/>

Is it possible to replace this by a search on string (or any information from res_partner_category)?

Thanks,

David

Avatar
Cancelar
Melhor resposta

yes, try ('category_id.name', '=', 'what you want')

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
abr. 22
6986
5
ago. 24
47106
2
abr. 24
2801
3
jun. 23
6240
2
jun. 23
5001