diff --git a/htdocs/product/inventory/inventory.php b/htdocs/product/inventory/inventory.php index cba2e8d99f1..231860c5724 100644 --- a/htdocs/product/inventory/inventory.php +++ b/htdocs/product/inventory/inventory.php @@ -967,7 +967,12 @@ if ($object->status == $object::STATUS_DRAFT || $object->status == $object::STAT print $formproduct->selectWarehouses((GETPOSTISSET('fk_warehouse') ? GETPOSTINT('fk_warehouse') : $object->fk_warehouse), 'fk_warehouse', 'warehouseopen', 1, 0, 0, '', 0, 0, array(), 'maxwidth300'); print ''; print ''; - print $form->select_produits((GETPOSTISSET('fk_product') ? GETPOSTINT('fk_product') : $object->fk_product), 'fk_product', '', 0, 0, -1, 2, '', 0, null, 0, '1', 0, 'maxwidth300'); + if (getDolGlobalString('STOCK_SUPPORTS_SERVICES')) { + $filtertype = ''; + } else { + $filtertype = 0; + } + print $form->select_produits((GETPOSTISSET('fk_product') ? GETPOSTINT('fk_product') : $object->fk_product), 'fk_product', $filtertype, 0, 0, -1, 2, '', 0, null, 0, '1', 0, 'maxwidth300'); print ''; if (isModEnabled('productbatch')) { print '';