Merge pull request #8830 from wdammak/patch-8

Add liste_modeles to warehouse module
This commit is contained in:
Laurent Destailleur 2018-05-25 11:43:48 +02:00 committed by GitHub
commit aa65b3f9ba
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.php';
$modellist=ModelePDFStock::liste_modeles($this->db);
}
}
elseif ($modulepart == 'movement')
{
if (is_array($genallowed)) $modellist=$genallowed;
else
{
include_once DOL_DOCUMENT_ROOT.'/core/modules/stock/modules_movement.php';
$modellist=ModelePDFMovement::liste_modeles($this->db);
}
}
elseif ($modulepart == 'export')
{
if (is_array($genallowed)) $modellist=$genallowed;