Odoo Help


How to avoid negative stock when selling via eCommerce?

Katja Lauer
on 7/21/14, 5:32 AM 4,260 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.

AV Media Design, Alain Vanzella
on 10/27/14, 9:55 AM

Ivan Elizaryev

--Ivan Elizaryev--
| 4 3 7
Ufa, Russian Federation
--Ivan Elizaryev--

I tried odoo at the end of 2013. I fell in love in it and have been working with odoo as a freelancer for almost two years. In September 2015 I began operate as a Company and have 5 developers for now.

Ivan, March 2016.

Ivan Elizaryev
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 Elizaryev
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 Elizaryev
on 5/12/15, 12:01 PM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

6 follower(s)


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