Add liste_modeles to warehouse module

This commit is contained in:
wdammak 2018-05-22 01:09:52 +01:00 committed by GitHub
parent 3c4c48c331
commit 1f43882bb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;