Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
2293 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen

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

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Sept. 23
2287
1
Okt. 23
2338
1
Sept. 23
2203
1
Aug. 23
23910
0
Feb. 23
3011