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

I created this excel report, I report is executing without errors

I have used a for loop for a one2many field in the form, but in some forms the one2many field is empty, while I am executng the report only the forms where one2many field has values is showing and its skipping the forms with null valjue in the one2many field

Please check the code:

for record in claim.appointment_disease_ids:
    worksheet.write(row, 31, record.code)
    worksheet.write(row, 32, record.diease_id.name)
    
any suggestion on how to do a looping for the null one2many field

아바타
취소
관련 게시물 답글 화면 활동
0
2월 22
52
1
9월 22
3508
2
6월 17
125
2
11월 16
6190
1
12월 23
2233