Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Unable to print invoice in Odoo 8

By
Walter Zamora
on 9/29/15, 3:56 PM 1,109 views

I am trying to print an invoice for the first time in Odoo and keep getting error messages. I have installed the latest version of wkhtmltopdf which is one of the messages that appeared when trying to print. I have also looked through forums and have installed Python 2.7 as I understand that v3.0+ is not exactly supported and could also be a problem. I also made sure I has installed the latest version of reportlab. I am not sure what else I can do. Here is my error list:

Traceback (most recent call last):

File "/opt/odoo/addons/report/controllers/main.py", line 121, in report_download

response = self.report_routes(reportname, docids=docids, converter='pdf')

File "/opt/odoo/openerp/http.py", line 403, in response_wrap

response = f(*args, **kw)

File "/opt/odoo/addons/report/controllers/main.py", line 65, in report_routes

pdf = report_obj.get_pdf(cr, uid, docids, reportname, data=options_data, context=context)

File "/opt/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/addons/report/models/report.py", line 198, in get_pdf

save_in_attachment = self._check_attachment_use(cr, uid, ids, report)

File "/opt/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/addons/report/models/report.py", line 345, in _check_attachment_use

pdf = base64.decodestring(pdf)

File "/usr/lib/python2.7/base64.py", line 321, in decodestring

return binascii.a2b_base64(s)

TypeError: must be string or buffer, not None


Thank you in advance for your help!!

0
Alessandro Romano
On 8/4/16, 4:08 AM

I tried to install "Document Management System " on Odoo 9, but I get this error:

You try to install module 'document-management' that depends on module 'knowledge'.But the latter module is not available in your system.

How can I solve this?

thanks

Sorry, I just noticed that module is related to version 9

Alessandro Romano
on 8/4/16, 4:32 AM
0
Walter Zamora
On 9/30/15, 12:18 PM

After trying to solve this by downloading wkhtmltopdf and changing python versions, etc. I was able to solve this by downloading the "Document Management System" module. I hope this helps.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/29/15, 3:56 PM
Seen: 1109 times
Last updated: 8/4/16, 4:08 AM