With Q2 over, i want to export all posted vendor bills for Q2.
When i select them and choose 'print / original bills'
i get these exceptions:
File "/home/odoo/src/odoo/addons/account/models/ir_actions_report.py", line 57, in _retrieve_stream_from_attachment
return pdf.add_banner(stream, record.name, logo=True)
File "/home/odoo/src/odoo/odoo/tools/pdf.py", line 103, in add_banner
for p in range(old_pdf.getNumPages()):
File "/usr/lib/python3/dist-packages/PyPDF2/pdf.py", line 1150, in getNumPages
raise utils.PdfReadError("File has not been decrypted")
PyPDF2.utils.PdfReadError: File has not been decrypted
I guess one of the bills is in a pdf format not supported by PyPDF2, it cannot be decrypted and hence it cannot add the odoo banner to it.
Any workaround to be able to export my bills ?