Skip to Content
Menú
This question has been flagged
1 Respondre
3935 Vistes

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
Best Answer

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
Related Posts Respostes Vistes Activitat
1
de març 25
1533
0
de set. 24
948
1
de maig 24
1905
2
de juny 25
647
1
de gen. 25
1465