Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2177 Widoki

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?




Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
1
wrz 23
2171
1
paź 23
2263
1
wrz 23
2124
1
sie 23
23800
0
lut 23
2944