2
0
forked from Wavyzz/dolibarr

Fetch thirdparty to be sure thirdparty is accessible through an API call when we use ODT template

This commit is contained in:
Michael Jeanmotte
2020-01-29 14:44:50 +01:00
parent fe7344dd99
commit 300abfd5e2

View File

@@ -303,6 +303,9 @@ 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)) {