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

Hey guys,


I'm trying to filter the delivery adress field in the sales app to only show me the delivery adresses of the contact I picked in the contact field.


I've already tried to use the "domain" field in studio but I don't know how to compare two fields. 


right now I allready got it to only show delviery adresses using the following code:


["|","|",["type","=","delivery"],["company_id","!=",False],["company_id","=","company_id"]]

Thank you for your ideas.


I'm working on version 15!

Avatar
Descartar
Mejor respuesta

Hi Paul:

Remove the double quotes around the field name on the right hand side of the expression in the domain. Also, make sure you are referencing the correct field. For example, company_id refers to the company in a multi-company setup. If you want to reference the contact's company, use the parent_id field.

NOTE: If you are trying to compare 2 fields in the domain, that is currently not possible in Odoo.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
mar 25
548
0
sept 24
565
1
may 24
1141
1
ene 25
565
3
jul 24
2545