I would like to print the order instead of the coupon on my pos because I use it just to take orders with tablet and send it to the kitchen/bar, we decided to use another system to make fiscal coupons. What qweb view I need to call on pos.css?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
I found a (DIRTY) solution myself.
If you are willing to sacrifice the "invoice" function you need just to install the report_to_printer module and edit a qweb report and the js script (point_of_sale/static/src/js/screens.js) to archive the result.
Let me explain:
As you probably knows, the report to printer let you use any printer configured in your system, under cups in linux in my case.
After that you just need to change the content of the template on invoice report (point_of_sale.report_invoice) and the relative qweb report associated. Done! Now you can print any qweb report you lke directly from POS without a proxy printer.
If you want to edit the pos layout to pull out the validate button and have just the modified version of the invoice button, you need to edit the script "point_of_sale/static/src/js/screens.js".
Pulling out (or remark) the "validate" function
this.add_action_button({
label: _t('Validate'),
name: 'validation',
icon: '/point_of_sale/static/src/img/icons/png48/validate.png',
click: function(){
self.validate_order();
},
});
and modify the invoice part to suits yours needs:
if( this.pos.config.iface_invoicing ){
this.add_action_button({
label: _t('Invoice'),
name: 'invoice',
icon: '/point_of_sale/static/src/img/icons/png48/invoice.png',
click: function(){
self.validate_order({invoice: true});
},
});
}
That's all.
Does it mean payment method are useless ??
If you don't have an IP compatible printer the answer is yes.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 5 15
|
9095 | ||
|
1
thg 5 21
|
4868 | ||
|
0
thg 3 15
|
4277 | ||
|
0
thg 8 24
|
6404 | ||
Point of sale - different UOMs
Đã xử lý
|
|
3
thg 11 15
|
7032 |