FIX bad field used for labeling at print

This commit is contained in:
Stephane Mangin
2022-07-12 10:30:51 +02:00
committed by John Herholz
parent c97706d549
commit fb725207aa

View File

@@ -27,7 +27,7 @@ class PrintAttachment(models.TransientModel):
errors = []
for att_line in self.attachment_line_ids:
data = att_line.attachment_id.datas
title = att_line.attachment_id.store_fname
title = att_line.attachment_id.name
if not data:
errors.append(att_line)
continue