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

Hi,

I'm trying to edit the pos receipt and I already found informations. But I would like to know when the receipt is created, and so the file related to it. Let me explain why. I would like to add a QR code giving a code that I can get by using an API. To do so (I've already done it in account_move), I would like to use a function, and I was thinking that I could use the action which creates the receipt to extend it and add my code to get my field. So can someone tell me which file I have to look at to do so ?


Regards

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

Thanks for your answer. I've already seens your blog on how to edit Order Receipt template but I don't know how to do the .js, I mean, where should it be stored ? And how to include it into ODOO (in the manifest or there is another way to do ?)

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

Hi,

The POS receipt is an OWL template and it's rendered from JS. 

You can see the js file in the directory

point_of_sale/static/src/js/Screens/ReceiptScreen/OrderReceipt.js

Regards

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 23
6572
1
thg 11 23
3254
1
thg 12 24
2261
0
thg 8 24
1836
1
thg 8 24
2909