Skip to Content
Menú
This question has been flagged
1 Respondre
2010 Vistes

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
Descartar
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
Descartar

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

Autor

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

Related Posts Respostes Vistes Activitat
1
de set. 23
1986
1
d’oct. 23
2175
1
de set. 23
1963
1
d’ag. 23
23622
0
de febr. 23
2786