From 47aface33b995932a309f730ee0a49d7a1c6b443 Mon Sep 17 00:00:00 2001 From: Jacques-Etienne Baudoux Date: Tue, 19 Sep 2023 17:32:10 +0200 Subject: [PATCH] [FIX] printing_auto_base: collect all attachments --- printing_auto_base/models/printing_auto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/printing_auto_base/models/printing_auto.py b/printing_auto_base/models/printing_auto.py index d5c7bd5..fe1d13a 100644 --- a/printing_auto_base/models/printing_auto.py +++ b/printing_auto_base/models/printing_auto.py @@ -102,7 +102,7 @@ class PrintingAuto(models.Model): if generate_data_func: records = self._get_record(records) for record in records: - content.append(generate_data_func(record)[0]) + content += generate_data_func(record) return content def _prepare_attachment_domain(self, record):