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

 @api.constrains('line_ids')    def_check_exist_product_in_line(self):        err_products = []        # res = super(MybodyLine, self.line_ids).browse()        # if  self.line_ids:
        #         # return warning message
        #         raise ValidationError(_(f"No Journal Items {self.line_ids.name_sas.name}"))
        # return res                list_vali=[]        list_repe=[]            forlineinself.line_ids.name_sas :            # if line.id not in err_products:                forcopyinself.line_ids.name_sas:                    list_vali.append(copy.name)
                # # for copye in self.repito.name:                #     list_repe.append(self.repito ==self.line_ids.name_sas)
                ifline.name == list_vali:                     raiseexceptions.Warning(f" This field is already placed {line.name}, {list_vali}")                else :                    # pass                    err_products.append(line.id)                    raiseexceptions.Warning(_(f' {line.name} , {list_vali} ,{list_repe}'))                # else:            #     raise exceptions.Warning(_(' Exist'))

 I want to place a part of the body I bone a neck and an arm but the system does not validate if I add another neck in a line_ids

아바타
취소
관련 게시물 답글 화면 활동
0
10월 24
1749
0
8월 24
1571
0
1월 24
2058
1
11월 23
1770
2
10월 23
5721