İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1818 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç

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

Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Eyl 23
1827
1
Eki 23
2040
1
Eyl 23
1761
1
Ağu 23
23383
0
Şub 23
2579