Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
2322 Vues

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
Ignorer
Meilleure réponse

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
Ignorer

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

Auteur

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

Publications associées Réponses Vues Activité
1
sept. 23
2296
1
oct. 23
2343
1
sept. 23
2212
1
août 23
23926
0
févr. 23
3019