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

Hi friends,

In Odoo, In a Contact page(Form), On Accounting page:

I want to filter The 'Bank' IDs based on the country set for contact.

For example, if the country of contact is set to 'Canada', I want to show just the Canadian bank name and not all banks. How can I do that?




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

Hi Masood Zarei,

You need to inherit the view and add the following domain to the field bank.


[('country','=',parent.country_id)]


Hope it helps,
Kiran K

Аватар
Отменить

<field name="bank_id" position="attributes">
<attribute name="domain">[('country','=',parent.country_id)]</attribute>
</field>

Автор

Dear Kiran K, You are great. Thank you so much.

Related Posts Ответы Просмотры Активность
1
сент. 23
2218
1
окт. 23
2278
1
сент. 23
2144
1
авг. 23
23841
0
февр. 23
2965