Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2178 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit

<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 Odpovědi Zobrazení Aktivita
1
zář 23
2171
1
říj 23
2264
1
zář 23
2125
1
srp 23
23805
0
úno 23
2944