dans show_documents prise en compte du module commande

This commit is contained in:
Regis Houssin 2006-02-08 14:24:24 +00:00
parent 4b4d7faf73
commit ee4a94ed75

View File

@ -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')
{