Add liste_modeles to warehouse module
This commit is contained in:
parent
3c4c48c331
commit
1f43882bb7
@ -478,6 +478,24 @@ class FormFile
|
||||
$modellist=ModelePDFProductBatch::liste_modeles($this->db);
|
||||
}
|
||||
}
|
||||
elseif ($modulepart == 'stock')
|
||||
{
|
||||
if (is_array($genallowed)) $modellist=$genallowed;
|
||||
else
|
||||
{
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/modules/stock/modules_stock.class.php';
|
||||
$modellist=ModelePDFStock::liste_modeles($this->db);
|
||||
}
|
||||
}
|
||||
elseif ($modulepart == 'mouvement')
|
||||
{
|
||||
if (is_array($genallowed)) $modellist=$genallowed;
|
||||
else
|
||||
{
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/modules/stock/modules_stock.class.php';
|
||||
$modellist=ModelePDFMouvement::liste_modeles($this->db);
|
||||
}
|
||||
}
|
||||
elseif ($modulepart == 'export')
|
||||
{
|
||||
if (is_array($genallowed)) $modellist=$genallowed;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user