Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5 Trả lời
9285 Lượt xem

Hello community,

I am fairly new in Odoo, and I have been trying to find out a module that will remove products from POS if the products are out of stock and automatically add products back if they are back in stock.

Thanks in advance

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

If you have only stockable producta you can do it like this, we  have to override load_server_data() function in  point_of_sale/static/src/js/model.js .

Currently the POS have a filter like this, sale_ok tre and available_in_pos true.

return self.fetch(
                'product.product', 
                ['name', 'list_price','price','pos_categ_id', 'taxes_id', 'ean13', 'default_code',
                 'to_weight', 'uom_id', 'uos_id', 'uos_coeff', 'mes_type', 'description_sale', 'description'],
                [['sale_ok','=',true],['available_in_pos','=',true]],
                {pricelist: self.get('shop').pricelist_id[0]} // context for price
            );

To show only the quantity which have quamtity >0, you can add a extra filter here,

return self.fetch(
'product.product',
['name', 'list_price', 'price', 'pos_categ_id', 'taxes_id', 'ean13', 'default_code',
'to_weight', 'uom_id', 'uos_id', 'uos_coeff', 'mes_type', 'description_sale', 'description'],
[['sale_ok', '=', true], ['available_in_pos', '=', true], ['qty_available', '>', 0]],
{pricelist: self.get('shop').pricelist_id[0]} // context for price
);

Thanks


Ảnh đại diện
Huỷ bỏ

is it require to pos page refresh ?

Hi, i didn't checked it, may be the refresh is needed. also i have noticed a thing this may get problem with product which is not stockable

Câu trả lời hay nhất

Hi,

I wonder if in your case this behavior is strictly needed. We can avoid costly customization by considering that for POS sales, if the product is not physically in the store then no one can bring it to the teller to scan it. So there is no issue at all. 

Ảnh đại diện
Huỷ bỏ

Yupp.. Right....

How right you are!

Câu trả lời hay nhất

hello! i work with odoo13! i want to know how  to remove products from POS if the products are out of stock and automatically add products back if they are back in stock. thank you.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

This is required because I actually work as a salesman( in wholesale business), visit my customers and I give my tablet to my customers so that they can select what they want and some customers taunt that if the product is not available it shouldn't be in the POS, and some customers select it even if it is not available. I developed a module that would show how many products there are but the customers still select the products that are out of stock.

Ảnh đại diện
Huỷ bỏ

For your specific case you could use the web ecommerce module, where it's much simpler to take orders and display availability.

Câu trả lời hay nhất

We have a module which would definitely help you out.
Please drop me an email regarding the issues at shashikantmane@browseinfo.in
Further, we will discuss there.
Thanks & Regards

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 25
2196
1
thg 12 22
6324
0
thg 5 21
3361
2
thg 6 20
41984
4
thg 1 20
4436