Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2197 Prikazi

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?




Avatar
Opusti
Best Answer

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

Avatar
Opusti

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

Avtor

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

Related Posts Odgovori Prikazi Aktivnost
1
sep. 23
2195
1
okt. 23
2272
1
sep. 23
2138
1
avg. 23
23826
0
feb. 23
2954