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版本的情况。
答案 0 :(得分:1)
我解决了这个问题.wkhtmltopdf版本很好,这是odoo基本代码中的问题。在openerp.module.request.registery中不知道'report'模型。此报告和代码对其他人有效,这就是为什么更改新的odoo基本版本8代码。基本代码中的一些错误。