Fix stock mouvement does not need virtual stock.

This commit is contained in:
Francis Appels 2019-06-05 19:06:58 +02:00 committed by Laurent Destailleur
parent 73326cfbf9
commit 2ecde139f0

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)