fix: _create()
add 'require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';' to htdocs/product/stock/class/mouvementstock.class.php _create method. This to support product class instance used in function.
This commit is contained in:
parent
dde9a6da39
commit
d7fc0eea43
@ -61,6 +61,7 @@ class MouvementStock
|
||||
{
|
||||
global $conf, $langs;
|
||||
|
||||
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
|
||||
$error = 0;
|
||||
dol_syslog(get_class($this)."::_create start userid=$user->id, fk_product=$fk_product, warehouse=$entrepot_id, qty=$qty, type=$type, price=$price label=$label");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user