当打印出pdf时,qweb报告odoo 8中出现Wkhtmltopdf错误

问题描述 投票:1回答:1
Traceback (most recent call last):
File "/home/frontiir/gitlap/isp-erp/odoo/openerp/http.py", line 500, in _handle_exception
 return super(JsonRequest, self)._handle_exception(exception)
File "/home/frontiir/gitlap/isp-erp/odoo/openerp/http.py", line 517, in dispatch
result = self._call_function(**self.params)
File "/home/frontiir/gitlap/isp-erp/odoo/openerp/http.py", line 283, in _call_function
 return checked_call(self.db, *args, **kwargs)
File "/home/frontiir/gitlap/isp-erp/odoo/openerp/service/model.py", line 113, in wrapper
 return f(dbname, *args, **kwargs)
File "/home/frontiir/gitlap/isp-erp/odoo/openerp/http.py", line 280, in checked_call
 return self.endpoint(*a, **kw)
File "/home/frontiir/gitlap/isp-erp/odoo/openerp/http.py", line 733, in __call__
 return self.method(*args, **kw)
File "/home/frontiir/gitlap/isp-erp/odoo/openerp/http.py", line 376, in response_wrap
 response = f(*args, **kw)
File "/home/frontiir/gitlap/isp-erp/odoo/addons/report/controllers/main.py", line 144, in check_wkhtmltopdf
 return request.registry['report']._check_wkhtmltopdf()
File "/home/frontiir/gitlap/isp-erp/odoo/openerp/modules/registry.py", line 100, in __getitem__
 return self.models[model_name]
KeyError: 'report'

wkhtmltopdf版本是0.12.1。但是我无法在Odoo 8中打印出pdf。可能是wkhtmltopdf版本的情况。

odoo odoo-8 wkhtmltopdf qweb
1个回答
1
投票

我解决了这个问题。wkhtmltopdf版本还可以。这是odoo基本代码中的问题。在openerp.module.request.registery中不知道'report'模型。此报告和代码适用于其他人。这就是为什么我更改新的odoo基本版本8代码。基本代码中的一些错误。

© www.soinside.com 2019 - 2024. All rights reserved.