Added stock warehouse document upload
This commit is contained in:
parent
cf828d6223
commit
0ea4a4d071
1 changed files with 4 additions and 0 deletions
|
|
@ -994,6 +994,10 @@ class Documents extends DolibarrApi
|
|||
$modulepart = 'mrp';
|
||||
require_once DOL_DOCUMENT_ROOT . '/mrp/class/mo.class.php';
|
||||
$object = new Mo($this->db);
|
||||
} elseif ($modulepart == 'stock') {
|
||||
$modulepart = 'stock';
|
||||
require_once DOL_DOCUMENT_ROOT . '/product/stock/class/entrepot.class.php';
|
||||
$object = new Entrepot($this->db);
|
||||
} elseif ($modulepart == 'ecm') {
|
||||
throw new RestException(500, 'Using a non empty "ref" is not compatible with using modulepart = '.$modulepart);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue