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

Can someone please let me know the file location of where I can edit the default selection for the keypad when an item is selected for sale. 

I would like it to default to the price button rather than entering the Quantity.

Thank you

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

Hi,


By default, the POS keypad starts in Quantity mode because that’s hard-coded in the product add logic. To change it, you need to override the JS in point_of_sale/static/src/app/screens/product_screen/product_screen.js (or patch it in a custom module) to set the keypad mode to Price after a product is added.


File path

- addons/point_of_sale/static/src/app/generic_components/orderline/orderline.js





Hope it helps

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