From 5ea9b31a7d44dbf44d6a1eeeb039bcf2845ae25e Mon Sep 17 00:00:00 2001 From: Frank Cools Date: Wed, 8 Oct 2025 01:13:45 +0200 Subject: [PATCH] Fix template path for reset functionality - Update template_path to use relative path from class file - Fix REVENIR AU MODELE OFFICIEL button functionality - Ensure template detection works correctly - Resolve template path mismatch issue --- core/class/declarationtva_pdf.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/class/declarationtva_pdf.class.php b/core/class/declarationtva_pdf.class.php index 520b907..ee2872f 100644 --- a/core/class/declarationtva_pdf.class.php +++ b/core/class/declarationtva_pdf.class.php @@ -91,7 +91,7 @@ class DeclarationTVA_PDF { $this->db = $db; $this->entity = (int) $conf->entity; - $this->template_path = DOL_DOCUMENT_ROOT.'/custom/declarationtva/templates/declarationtva/'; + $this->template_path = dirname(__FILE__) . '/../../templates/declarationtva/'; } /**