I have a form for Attendance. I have a field for "Leave type" and a "Present " checkbox. I want to make "Leave type" field invisible or readonly when present checkbox is checked?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
1538
Views
Hi,
Use the following codes
<field name="Leave type" attrs="{'invisible' : [('Present', '=', True)]}"/>
<field name="Leave type" attrs="{'readonly' : [('Present', '=', True)]}"/>
Regards
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up