Skip to Content
Menu
This question has been flagged
1 Reply
2984 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
0
Sep 24
134
1
May 24
388
3
Jul 24
1536
1
Jun 24
2230
2
Feb 24
5139