diff --git a/htdocs/commande/note.php b/htdocs/commande/note.php index dc22f09deea0c..572e741348fe6 100644 --- a/htdocs/commande/note.php +++ b/htdocs/commande/note.php @@ -146,7 +146,13 @@ $cssclass = "titlefield"; - include DOL_DOCUMENT_ROOT.'/core/tpl/notes.tpl.php'; + $dirtpls = array_merge($conf->modules_parts['tpl'], array('/core/tpl')); + foreach ($dirtpls as $reldir) { + $res = @include dol_buildpath($reldir.'/notes.tpl.php'); + if ($res) { + break; + } + } print '';