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

I am working on odoo version 15; trying to customize receipt in POS module ; but I have an internal server error (500) .. My code as following:

OrderReceipt.xml

link of my code in xml : https://stackoverflow.com/questions/73136420/internal-server-error-in-customized-receipt 

  manifest.py
... "license": "OPL-1", "depends": [ 'base', 'point_of_sale', ], 'assets': { 'web.assets_qweb': [ 'static/src/xml/OrderReceipt.xml', # 'views/OrderReceipt.xml', ],  
Error Log :
FileNotFoundError: File not found: static/src/xml/OrderReceipt.xml - - -
2022-07-28 05:41:09,068 342410 INFO newestDB07021 werkzeug: 192.168.0.61 - - [28/Jul/2022 05:41:09] "GET /favicon.ico HTTP/1.1" 404 - 127 0.074 0.189
2022-07-28 05:41:50,952 342410 INFO newestDB07021 werkzeug: 192.168.0.61 - - [28/Jul/2022 05:41:50] "POST /longpolling/poll HTTP/1.1" 200 - 13 0.025 50.159
2022-07-28 05:41:52,030 342410 INFO newestDB07021 werkzeug: 192.168.0.61 - - [28/Jul/2022 05:41:52] "POST /longpolling/poll HTTP/1.1" 200 - 9 0.017 50.024
2022-07-28 05:41:55,264 342410 INFO newestDB07021 odoo.addons.base.models.ir_cron: Starting job `payment: post-process transactions`. 
2022-07-28 05:41:55,270 342410 INFO newestDB07021 odoo.addons.base.models.ir_cron: Job `payment: post-process transactions` done


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

the problem was in manifest .. I did not write the whole path .. it should be in the assests : 
'assets': {        'web.assets_qweb': [            'custom/static/src/xml/custom_pos.xml'
,
which custom refer to custom module name 

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

Hi,

As per the shared error message it seems to be File not found error !. Do you have a file named OrderReceipt.xml inside your module in the following path: static/src/xml ?

Thanks & Regards

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

yes , I did

what is the error in log currently

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 24
2818
0
thg 1 23
9
1
thg 11 22
2926
1
thg 6 22
2056
1
thg 4 22
3740