콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
6291 화면

Hello, 

After insatlling wkhtmltopdf on my server and get the following error msg when i try to print a pdf :

 Odoo Server Error

Traceback (most recent call last): File "/opt/odoo/odoo9/addons/report/controllers/main.py", line 96, in report_download

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

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

response = f(*args, **kw)

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

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

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

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

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

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

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

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

File "/opt/odoo/odoo9/addons/report/models/report.py", line 324, 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

Many thanks 



아바타
취소

The invoices I'm having problem with are the ones created before i install wkhtmltopdf.

The new ones works correctly 


관련 게시물 답글 화면 활동
1
4월 19
4766
3
3월 25
9684
1
5월 15
8682
3
12월 18
10436
2
7월 24
1739