未知报告类型:打印报告时webkit错误?

时间:2015-01-26 17:39:09

标签: webkit report openerp odoo

过去几天我遇到了以下错误,我无法知道如何继续。

完整错误是:

2015-01-26 17:29:25,162 21218 ERROR myodoo openerp.service.report: Exception: Unknown report type: webkit
Traceback (most recent call last):
  File "/opt/odoo/openerp/service/report.py", line 93, in go
    result, format = openerp.report.render_report(cr, uid, ids, object, datas, context)
  File "/opt/odoo/openerp/report/__init__.py", line 40, in render_report
    return registry['ir.actions.report.xml'].render_report(cr, uid, ids, name, data, context)
  File "/opt/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/openerp/addons/base/ir/ir_actions.py", line 155, in render_report
    return new_report.create(cr, uid, res_ids, data, context)
  File "/opt/odoo/openerp/report/report_sxw.py", line 391, in create
    raise NotImplementedError(_('Unknown report type: %s') % report_type)
NotImplementedError: Unknown report type: webkit

2015-01-26 17:29:25,397 21218 ERROR myodoo openerp.addons.web.controllers.main: An exception occured during an http request
Traceback (most recent call last):
  File "/opt/odoo/addons/web/controllers/main.py", line 69, in wrap
    return f(*args, **kwargs)
  File "/opt/odoo/addons/web/controllers/main.py", line 1576, in index
    request.session.db, request.session.uid, request.session.password, report_id)
  File "/opt/odoo/openerp/http.py", line 807, in proxy_method
    result = dispatch_rpc(self.service_name, method, args)
  File "/opt/odoo/openerp/http.py", line 100, in dispatch_rpc
    result = dispatch(method, params)
  File "/opt/odoo/openerp/service/report.py", line 34, in dispatch
    res = fn(db, uid, *params)
  File "/opt/odoo/openerp/service/report.py", line 141, in exp_report_get
    return _check_report(report_id)
  File "/opt/odoo/openerp/service/report.py", line 119, in _check_report
    raise openerp.osv.orm.except_orm(exc.message, exc.traceback)
except_orm: (u'Unknown report type: webkit', (<type 'exceptions.NotImplementedError'>, NotImplementedError(u'Unknown report type: webkit',), <traceback object at 0x7fa2f9af8dd0>))

我一直在开发我的模块,所以我认为这是我触及的东西,但即使我安装模块的先前工作版本,我仍然会得到相同的错误。

这让我觉得系统可能会有变化,但我检查了 wkhtmltopdf 是否有效且一切正常。

任何关于在哪里看的线索都会非常感激。

谢谢!

1 个答案:

答案 0 :(得分:0)

可能是您没有安装Webkit报告引擎。 检查report_webkit模块是否已安装。