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')] }"/>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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')] }"/>
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
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
2
ene 20
|
14785 | ||
|
16
ago 19
|
9807 | ||
|
5
jun 18
|
10557 | ||
|
0
sept 17
|
2281 | ||
|
0
feb 17
|
2788 |
How to visible and invisible fields in odoo
https://goo.gl/BCxCpk