跳至內容
選單
此問題已被標幟
1 回覆
5410 瀏覽次數

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
15207
16
8月 19
10168
5
6月 18
10829
0
9月 17
2470
0
2月 17
2993