Odoo Help

Welcome!

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.

1

How to Load products having quantity in POS ?

By
arun
on 12/15/14, 1:12 AM 931 views

How to Load products having quantity greater than 0 in POS ?

I tried point_of_sale/static/src/js/model.js Line number 177

[['sale_ok','=',true],['available_in_pos','=',true], ['product_uos_qty' , '>', 10]], but no use, got stock in this situation, pls help me to sort this out.

1
Alejandro Perez Cosio
On 12/16/14, 6:27 AM

Hello arun, try with the following portion of code, it worked for me:

[['sale_ok','=',true],['available_in_pos','=',true],['qty_available' , '>', 0]]

Hope it help you

Cheers
Alejandro

0
Ridwan Nurwahid
On 6/8/16, 7:05 PM

Wow, great Alejandro, 100% works.

I just edit point_of_sale/static/src/js/model.js

And change

[['sale_ok','=',true],['available_in_pos','=',true]]

To

[['sale_ok','=',true],['available_in_pos','=',true],['qty_available' , '>', 0]]

And the zero quantity product is now gone from my POS.

Great info bro

Thanks

0
arun
On 12/16/14, 6:41 AM

Alejandro, thanks for your reply, but i tried this one, same result, did u make any changes to point_of_sale.py..?? 

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

2 follower(s)

Stats

Asked: 12/15/14, 1:12 AM
Seen: 931 times
Last updated: 6/8/16, 8:20 PM