Unfortunately, odoo doesn't consider stock status of a products in eCommerce and customers are able to order out-of-stock items.

But on the other hand, the strength of the odoo is module structure to make modifications easily.

So, I've made a small module website_sale_stock_status to fix this issue.