From c535f0fc748a7c0aec0eeaa1acd44a7cdc1affe7 Mon Sep 17 00:00:00 2001 From: Stephane Mangin Date: Tue, 12 Jul 2022 10:30:51 +0200 Subject: [PATCH] FIX bad field used for labeling at print --- base_report_to_printer/wizards/print_attachment_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_report_to_printer/wizards/print_attachment_report.py b/base_report_to_printer/wizards/print_attachment_report.py index 8f21825..fb2b38e 100644 --- a/base_report_to_printer/wizards/print_attachment_report.py +++ b/base_report_to_printer/wizards/print_attachment_report.py @@ -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