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

Hello, I am working with the py3o report engine module to create reports in ODT format, and it works as follows.


Button example: 


        string="Print req inm" class="btn-success"/>

Function:


def report_req_inm​(self):

return self.env.ref('print_mobile.print_report_inm').report_action(self)


XML REPORT:


  

    Print req inm mobile

    tram.req

    Req_inm_mobile

    py3o

    docx    

    print_mobile

    report/req_inm_report.odt

    

    report

     

     


     


So I have them linked, then I no longer work on the odt...

At first they work, the reports are printed without any problem... here the issue is that from one moment to the next I could no longer print the reports due to the following error.

In the Odoo interface it shows the following:

//The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.//


Now in the log it shows me the following error (I really don't know why it appears):


//TypeError: Object of type MaxRetryError is not JSON serializable//


The log shows me that this line of code is being returned directly from the py3o/controllers/main.py module


except Exception as e:

            se = _serialize_exception(e)

            error = {"code": 200, "message": "Odoo Server Error", "data": se}

            return request.make_response(html_escape(json.dumps(error)))

            

Is there any way to solve this error and to be able to print the reports again?

Odoo 14 community

Thank you all.



Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 21
2050
1
thg 7 22
2776
1
thg 7 22
2555
0
thg 9 21
2435
1
thg 4 21
3975