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

i want to display a customized field "wilaya" depending the value of another field "country_id" in the view base.view_partner_form

my code is : 

                <field name="wilaya" attrs="{'invisible': [('country_id','!=', 'Algeria')] }"/>

but the condition doesn't work. need help please
アバター
破棄

How to visible and invisible fields in odoo

https://goo.gl/BCxCpk

最善の回答

Hello Kader,

<field name="wilaya" attrs="{'invisible': [('country_id','!=',record_id)] }"/>

record_id = Database id then it will work

アバター
破棄
著作者

very helpful thx very much it's working

関連投稿 返信 ビュー 活動
2
1月 20
15158
16
8月 19
10121
5
6月 18
10780
0
9月 17
2454
0
2月 17
2974