diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php
index 91816543ac1..2fa941a7f11 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')
{