Fix stock mouvement does not need virtual stock.

This commit is contained in:
Francis Appels 2019-06-05 19:06:58 +02:00
parent c200ec22da
commit 2e0539efa7

View File

@ -163,7 +163,7 @@ class MouvementStock extends CommonObject
$this->db->begin();
$product->load_stock();
$product->load_stock('novirtual');
// Test if product require batch data. If yes, and there is not, we throw an error.
if (! empty($conf->productbatch->enabled) && $product->hasbatch() && ! $skip_batch)