Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
5547 Переглядів

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

Related Posts Відповіді Переглядів Дія
2
січ. 20
15371
16
серп. 19
10324
5
черв. 18
10968
0
вер. 17
2594
0
лют. 17
3109