mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
Fetch thirdparty to be sure thirdparty is accessible through an API call when we use ODT template
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user