Merge pull request #8830 from wdammak/patch-8
Add liste_modeles to warehouse module
This commit is contained in:
commit
aa65b3f9ba
@ -478,6 +478,24 @@ class FormFile
|
|||||||
$modellist=ModelePDFProductBatch::liste_modeles($this->db);
|
$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')
|
elseif ($modulepart == 'export')
|
||||||
{
|
{
|
||||||
if (is_array($genallowed)) $modellist=$genallowed;
|
if (is_array($genallowed)) $modellist=$genallowed;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user