I need to get the value of selected checkboxes and perform a functin based on it.
please help
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I need to get the value of selected checkboxes and perform a functin based on it.
please help
class YourModel(models.Model):
_name = 'your.model'
your_select_field = fields.Boolean()
def your_function(self):
if self.your_select_field:
#check box is checked condn
else:
# check box is not checked condn
You can give a button function to call your_function in xml.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up