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.


Why POS application doesn't validate the products stock?

on 3/22/15, 10:03 AM 989 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

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.

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?

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

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 Yelizariev
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 Yelizariev
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

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

3 follower(s)


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