Odoo8商店订单点paynow后报错[已解决]
-
错误如下,困扰了很多天,有人碰到这种问题吗,不知是否我的版本太新?
Traceback (most recent call last):<br /> File "/usr/lib/python2.7/dist-packages/openerp/addons/website/models/ir_http.py", line 204, in _handle_exception<br /> response = super(ir_http, self)._handle_exception(exception)<br /> File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_http.py", line 100, in _handle_exception<br /> return request._handle_exception(exception)<br /> File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 654, in _handle_exception<br /> return super(HttpRequest, self)._handle_exception(exception)<br /> File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_http.py", line 126, in _dispatch<br /> result = request.dispatch()<br /> File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 672, in dispatch<br /> r = self._call_function(**self.params)<br /> File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 302, in _call_function<br /> return checked_call(self.db, *args, **kwargs)<br /> File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 113, in wrapper<br /> return f(dbname, *args, **kwargs)<br /> File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 299, in checked_call<br /> return self.endpoint(*a, **kw)<br /> File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 791, in __call__<br /> return self.method(*args, **kw)<br /> File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 395, in response_wrap<br /> response = f(*args, **kw)<br /> File "/usr/lib/python2.7/dist-packages/openerp/addons/website_sale/controllers/main.py", line 810, in payment_validate<br /> composer_id = request.registry['mail.compose.message'].create(cr, SUPERUSER_ID, composer_values, context=email_ctx)<br /> File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 237, in wrapper<br /> return old_api(self, *args, **kwargs)<br /> File "/usr/lib/python2.7/dist-packages/openerp/addons/mail/mail_message.py", line 804, in create<br /> newid = super(mail_message, self).create(cr, uid, values, context)<br /> File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 237, in wrapper<br /> return old_api(self, *args, **kwargs)<br /> File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 332, in old_api<br /> result = method(recs, *args, **kwargs)<br /> File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 3987, in create<br /> vals = self._add_missing_default_values(vals)<br /> File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 235, in wrapper<br /> return new_api(self, *args, **kwargs)<br /> File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 464, in new_api<br /> result = method(self._model, cr, uid, *args, **kwargs)<br /> File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 1810, in _add_missing_default_values<br /> defaults = self.default_get(cr, uid, list(missing_defaults), context)<br /> File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 237, in wrapper<br /> return old_api(self, *args, **kwargs)<br /> File "/usr/lib/python2.7/dist-packages/openerp/addons/email_template/wizard/mail_compose_message.py", line 54, in default_get<br /> res.get('model'), res.get('res_id'), context=context<br /> File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 237, in wrapper<br /> return old_api(self, *args, **kwargs)<br /> File "/usr/lib/python2.7/dist-packages/openerp/addons/email_template/wizard/mail_compose_message.py", line 103, in onchange_template_id<br /> values = self.generate_email_for_composer_batch(cr, uid, template_id, [res_id], context=context)[res_id]<br /> File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 237, in wrapper<br /> return old_api(self, *args, **kwargs)<br /> File "/usr/lib/python2.7/dist-packages/openerp/addons/email_template/wizard/mail_compose_message.py", line 167, in generate_email_for_composer_batch<br /> template_values = self.pool.get('email.template').generate_email_batch(cr, uid, template_id, res_ids, fields=fields, context=ctx)<br /> File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 237, in wrapper<br /> return old_api(self, *args, **kwargs)<br /> File "/usr/lib/python2.7/dist-packages/openerp/addons/email_template/email_template.py", line 514, in generate_email_batch<br /> result, format = self.pool['report'].get_pdf(cr, uid, [res_id], report_service, context=ctx), 'pdf'<br /> File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 237, in wrapper<br /> return old_api(self, *args, **kwargs)<br /> File "/usr/lib/python2.7/dist-packages/openerp/addons/report/models/report.py", line 269, in get_pdf<br /> paperformat, specific_paperformat_args, save_in_attachment<br /> File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 237, in wrapper<br /> return old_api(self, *args, **kwargs)<br /> File "/usr/lib/python2.7/dist-packages/openerp/addons/report/models/report.py", line 442, in _run_wkhtmltopdf<br /> wkhtmltopdf = [_get_wkhtmltopdf_bin()] + command_args + local_command_args<br /> File "/usr/lib/python2.7/dist-packages/openerp/addons/report/models/report.py", line 54, in _get_wkhtmltopdf_bin<br /> raise IOError<br />IOError
-
通过apt安装wkhtmltopdf不行,需要下载软件包dpkg安装
-
确实, /usr/local/bin有,谢谢