Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2299 Переглядів

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
2290
1
жовт. 23
2339
1
вер. 23
2205
1
серп. 23
23918
0
лют. 23
3014