Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
5411 Представления

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
15207
16
авг. 19
10168
5
июн. 18
10829
0
сент. 17
2470
0
февр. 17
2993