콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5159 화면

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.

아바타
취소