From 481e7126bf7bb58137f934919f78682e7ba578a2 Mon Sep 17 00:00:00 2001 From: Michael Jeanmotte Date: Wed, 29 Jan 2020 15:13:40 +0100 Subject: [PATCH] Revert "Fetch thirdparty to be sure thirdparty is accessible through an API call when we use ODT template" This reverts commit 300abfd5 --- .../modules/facture/doc/doc_generic_invoice_odt.modules.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php b/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php index aac525ffb55..ef05b9b2df9 100644 --- a/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php +++ b/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php @@ -303,9 +303,6 @@ class doc_generic_invoice_odt extends ModelePDFFactures $result = $object->fetch_contact($arrayidcontact[0]); } - // Fetch thirdparty to be sure thirdparty is accessible through an API call when we use ODT template - $object->fetch_thirdparty(); - // Recipient name $contactobject = null; if (!empty($usecontact)) {