Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3921 Представления

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!

Аватар
Отменить
Лучший ответ

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.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
мар. 25
1499
0
сент. 24
945
1
мая 24
1877
2
июн. 25
597
1
янв. 25
1426