【问题标题】:Wkhtmltopdf error in qweb report odoo 8 when print out pdf打印出pdf时qweb报告odoo 8中的Wkhtmltopdf错误
【发布时间】:2020-01-22 08:47:44
【问题描述】:
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】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多