Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
4308 Vistas

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
Descartar
Mejor respuesta

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

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
abr 22
6799
5
ago 24
46628
2
abr 24
2550
3
jun 23
5777
2
jun 23
4721