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

I am working on Odoo 17.

I added a new sequence to the PosOrder, and I want to show it and show other fields on every receipt when the order is paid.

I think the structure is different in Odoo 17 compared to earlier versions, as I found the OrderReceipt xml and js file in the following path:

point_of_sale/static/src/app/screens/receipt_screen/receipt/

So how can I extend the OrderReceipt and customize it?

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

Hi,For Pos receipt customization try the following apps,

https://apps.odoo.com/apps/modules/17.0/custom_receipts_for_pos/

https://apps.odoo.com/apps/modules/17.0/pos_receipt_extend/

Hope it helps

Ảnh đại diện
Huỷ bỏ
Tác giả

Thank you for your answer, it was really helpful.

But all the data you tried to show in the receipt come from the front-end (customer info for example).
In my case I wanted to show a new field which gets its value on the server.

I don't know if this is the best solution but I've overridden the create_from_ui method in pos_order.py, and the _save_to_server method in pos_store.js so that i add the new field to the response.

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

I installed this module, but new users cannot open the POS, only the administrator user.

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

The user need permission to access res.config.settings

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 6 25
1165
2
thg 7 25
2736
1
thg 1 25
2816
1
thg 12 24
2812
2
thg 10 24
3463