コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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
3513
2
6月 17
125
2
11月 16
6194
1
12月 23
2236