Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How to avoid negative stock when selling via eCommerce?

Katja Lauer
on 7/21/14, 5:32 AM 2,949 views


I'd like to use the ecommerce module, but when testing it it appears that it doesn't consider stock availability. A customer can order any amount of items, the stock goes into negative. 

Is there a way to limit ecommerce sales to the actual stock of the product? 
Otherwise the whole module isn't usable for me. 

Hello Katja, have you been able to find a solution for the described issue? It's somewhat strange there seems to be no configuration which would allow to limit sales over through the eCommerce module to those products actually in stock. Maybe I'm missing something or simply got overwhelmed by the complexity of the stock management?! It should be a standard feature for an eCommerce platform to be able to show products as "Sold out" which are not in stock anymore...

on 10/24/14, 7:20 AM

Hey CLudwig, I asked in several forums / communites and got nothing that helped me any further. The answer I found now is using a different shop system as the odoo ecommerce module is useless to me the way it is now. As you said, it should be a basic feature of an ecommerce system not to sell more than there is in stock.

Katja Lauer
on 10/24/14, 8:05 AM

Aww, what a bummer. I thought I finally found an ecommerce solution plus fully integrated accounting with Odoo. Actually there has to be a solution, because I see no sense in allowing customers to order more than I have in stock?! Well, at least not without any kind of feedback to the customer. I'm very surprised there are not more complaints regarding the way stock management and the ecommerce module work together, while it appears to be fairly standard to sell products you are not able to produce or order from suppliers yourself. May I ask what shop software you ended up using now? I guess you are mainly aiming at selling within Germany/Europe as well? - Chris

on 10/24/14, 10:10 AM

Odoo has told me via chat today that this is possible to configure, however it would normally be done by an Odoo consultant (either Odoo or partner of Odoo)

on 10/24/14, 10:21 AM

I agree this is an very important feature for any ecommerce solution. Let's hope It will be available very soon (from Odoo or a partner) as it's a real handicap for the moment.

Alain Vanzella
on 10/27/14, 9:55 AM
Ivan Yelizariev
On 2/20/15, 4:56 AM

You can try my module website_sale_stock_status

The module adds automatic ribbons:

  • DISCONTINUED – stock is 0 and the status is End of Life or Obsolete.
  • BACKORDERED – stock is 0 and the status is Normal,

It also puts ribbons text at the product page and disables "Add to cart" feature if product is discontinued.

Repository: https://github.com/yelizariev/addons-yelizariev/tree/8.0/website_sale_stock_status


Another solution is module website_sale_available

It makes impossible to order more products that available in stock. 

Repository: https://github.com/yelizariev/addons-yelizariev/tree/8.0/website_sale_available 

Hi Ivan, Very useful module, but I have a question: what if the client inputs, let's say, 10.000 units and there's less than that? Regards.

Manuel Pérez
on 2/21/15, 2:18 PM

Hi, my module doesn't handle the situation you described yet.

Ivan Yelizariev
on 2/22/15, 1:18 AM

Thanks Ivan!

Manuel Pérez
on 2/24/15, 2:26 AM

Manuel Pérez, I've updated my answer. You can try website_sale_available module.

Ivan Yelizariev
on 5/12/15, 12:01 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

6 follower(s)


Asked: 7/21/14, 5:32 AM
Seen: 2949 times
Last updated: 5/12/15, 12:02 PM