Better performance

This commit is contained in:
Laurent Destailleur 2021-05-12 08:54:36 +02:00
parent 3ea6cd1c66
commit fac32ee913

View File

@ -642,7 +642,7 @@ if ($object->id > 0) {
} else {
$product_static = new Product($db);
$result = $product_static->fetch($obj->fk_product, '', '', '', 1, 1, 1);
var_dump($result);
$option = 'nobatch';
$option .= ',novirtual';
$product_static->load_stock($option); // Load stock_reel + stock_warehouse. This can also call load_virtual_stock()