diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 818c0479c665dc96d235fc839add5cab6ed2ef0b..931af52c44d544bce944da67c05160348f15de2f 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -1487,6 +1487,8 @@ class Product extends CommonObject // We should not load stock at each fetch. If someone need stock, he must call load_stock after fetch. //$res=$this->load_stock(); //return $res; + // ok we don't load stock but we init the stock_warehouse array + $this->stock_warehouse = Array(); return 1; }