I have 2 boolean (checkbox) so I want make like this. when I click first boolean (checkbox), boolean second is true then second boolean, condition first checkbox is true.
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
2408
Views
Hi Athira,
You add @api.onchange method to change checkbox to true so if the first check box is true second one will turn. you can also add condition in that.
@api.onchange('firstcheckbox')
def _onchange_checkbox(self):
if first_checkbox:
self.second_checkbox = True
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