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
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Jan 20
|
13436 | ||
|
16
Aug 19
|
8650 | ||
|
5
Jun 18
|
9580 | ||
|
0
Sep 17
|
1602 | ||
|
0
Feb 17
|
1972 |
How to visible and invisible fields in odoo
https://goo.gl/BCxCpk