跳至内容
菜单
此问题已终结
1 回复
5198 查看

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.

形象
丢弃