Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3922 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
mars 25
1501
0
sept. 24
947
1
mai 24
1877
2
juin 25
600
1
janv. 25
1429