diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 91816543ac1ec862be1415fef69bdf4ef0ed89bd..2fa941a7f11a54ee5b93c8edcbf1a739ef873504 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -1837,6 +1837,16 @@ class Form $model=new ModelePDFPropales(); $modellist=$model->liste_modeles($this->db); } + } + else if ($modulepart == 'commande') + { + if (is_array($genallowed)) $modellist=$genallowed; + else + { + include_once(DOL_DOCUMENT_ROOT.'/includes/modules/commande/modules_commande.php'); + $model=new ModelePDFCommandes(); + $modellist=$model->liste_modeles(); + } } elseif ($modulepart == 'facture') {