Odoo Help


Why POS application doesn't validate the products stock?

on 3/22/15, 10:03 AM 2,149 views

I tried out the POS applications, but I discovered that is lacks the products stock validation!

Moreover, even the online demo deals with the POS products as consumable, so the stock won't claim any shortage!
Can anyone explain to me why this is intended?!

The POS takes the stock quantites at the beginning of the session. The POS module is designed to support offline mode fully once it has started, so I guess that's why it doesn't do any real time checks

ePillars Systems LLC, Shawn Varghese
on 3/22/15, 3:57 PM

If you really want to check product stock, you could override the code and call a python function from the point of sale js files and verify stock for the product.

ePillars Systems LLC, Shawn Varghese
on 3/22/15, 4:33 PM

Thanks Shawn for your reply. Can you help me in this code?

on 3/22/15, 4:43 PM

are you using version 7 or 8?

ePillars Systems LLC, Shawn Varghese
on 3/23/15, 2:17 AM

Odoo v8

on 3/23/15, 3:57 AM

I will tinker with the code myself to get a better idea and get back to you

ePillars Systems LLC, Shawn Varghese
on 3/23/15, 6:09 AM

Ok Shawn, I'll be waiting for you, and please let me share you your ideas.

on 3/24/15, 6:02 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 3/24/15, 6:35 AM

 I think it is because POS designed for usual shops, where customer bring products and cashier register order. So, if customer bring an item, then there is no shortage of this item.

I have created a module that fix this issue https://github.com/yelizariev/pos-addons/tree/8.0/pos_product_available . It shows count of item in stock. It works in offline mode. The module is designed under the assumption that there are no changes in stock while POS is opened. To refresh stock you have to update pos page. 

Thanks very much for your reply. I'll check it out and reply back with my comments.

on 3/24/15, 8:43 AM

I tried your solution, it is really helpful. And it show me the stock for my products. But it lacks warning me if I am selling under the zero stock (like the quotation order, or the sales order) Can you add this warning feature?

on 3/24/15, 11:43 AM

Would you add a validation for that, or this situation is fine?

on 3/26/15, 9:54 AM

Red color for count of items is a kind of warning.

Ivan Elizaryev
on 4/10/15, 2:57 PM

@Invan: Is to possible to associate stock location of a product in pos_product_available? The reason is because, I need to show the product quantity which is available in a particular Warehouse.

Nikhil Mohan
on 5/5/16, 6:20 AM

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

3 follower(s)


Asked: 3/22/15, 10:03 AM
Seen: 2149 times
Last updated: 3/24/15, 6:59 AM