From ee4a94ed752eabb05cc54464b5aa62d7fc42c0aa Mon Sep 17 00:00:00 2001
From: Regis Houssin <regis@dolibarr.fr>
Date: Wed, 8 Feb 2006 14:24:24 +0000
Subject: [PATCH] dans show_documents prise en compte du module commande

---
 htdocs/html.form.class.php | 10 ++++++++++
 1 file changed, 10 insertions(+)

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