missing hookmanager like others doc_generic*odt modules

This commit is contained in:
Eric Seigne
2025-01-22 23:53:16 +01:00
parent 278b07099c
commit cbe15c7c71
4 changed files with 19 additions and 0 deletions

View File

@@ -233,7 +233,12 @@ class doc_generic_myobject_odt extends ModelePDFMyObject
}
// Add odtgeneration hook
if (!is_object($hookmanager)) {
include_once DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php';
$hookmanager = new HookManager($this->db);
}
$hookmanager->initHooks(array('odtgeneration'));
global $action;
if (!is_object($outputlangs)) {
$outputlangs = $langs;