コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2328 ビュー

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?




アバター
破棄
最善の回答

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

アバター
破棄

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

著作者

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

関連投稿 返信 ビュー 活動
1
9月 23
2311
1
10月 23
2370
1
9月 23
2235
1
8月 23
23957
0
2月 23
3025