Merge pull request #11305 from fappels/develop_stock_performance

FIX stock movement does not need virtual stock.
This commit is contained in:
Laurent Destailleur 2019-06-07 18:08:35 +02:00 committed by GitHub
commit 99ad8d5fb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)