composer require metagento/stock-qty-m2
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento cache:flush
After install the module, please go to Store -> Configuration -> Metagento Extension -> Stock Qty to enable/disable the function