Save the name of generated file as the main doc when generating a doc with this template

This commit is contained in:
Philippe GRAND 2021-02-08 19:40:27 +01:00
parent 925d81d1b3
commit 6b0bb90ab2

View File

@ -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';