From 6b0bb90ab212b79002e12baff0fd165ce60eda03 Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Mon, 8 Feb 2021 19:40:27 +0100 Subject: [PATCH] Save the name of generated file as the main doc when generating a doc with this template --- htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php b/htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php index 7a3ecf88e19..9ac43fd1625 100644 --- a/htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php +++ b/htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php @@ -133,6 +133,7 @@ class pdf_canelle extends ModelePDFSuppliersInvoices $this->db = $db; $this->name = "canelle"; $this->description = $langs->trans('SuppliersInvoiceModel'); + $this->update_main_doc_field = 1; // Save the name of generated file as the main doc when generating a doc with this template // Page dimensions $this->type = 'pdf';