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.