Odoo中文社区可以通过以下三个域名访问:shine-it.net , odoocn.org,odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

Odoo8商店订单点paynow后报错[已解决]



  • 错误如下,困扰了很多天,有人碰到这种问题吗,不知是否我的版本太新?

    Traceback (most recent call last):<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/addons/website/models/ir_http.py&quot;, line 204, in _handle_exception<br />&nbsp; &nbsp; response = super(ir_http, self)._handle_exception(exception)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_http.py&quot;, line 100, in _handle_exception<br />&nbsp; &nbsp; return request._handle_exception(exception)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/http.py&quot;, line 654, in _handle_exception<br />&nbsp; &nbsp; return super(HttpRequest, self)._handle_exception(exception)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_http.py&quot;, line 126, in _dispatch<br />&nbsp; &nbsp; result = request.dispatch()<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/http.py&quot;, line 672, in dispatch<br />&nbsp; &nbsp; r = self._call_function(**self.params)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/http.py&quot;, line 302, in _call_function<br />&nbsp; &nbsp; return checked_call(self.db, *args, **kwargs)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/service/model.py&quot;, line 113, in wrapper<br />&nbsp; &nbsp; return f(dbname, *args, **kwargs)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/http.py&quot;, line 299, in checked_call<br />&nbsp; &nbsp; return self.endpoint(*a, **kw)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/http.py&quot;, line 791, in __call__<br />&nbsp; &nbsp; return self.method(*args, **kw)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/http.py&quot;, line 395, in response_wrap<br />&nbsp; &nbsp; response = f(*args, **kw)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/addons/website_sale/controllers/main.py&quot;, line 810, in payment_validate<br />&nbsp; &nbsp; composer_id = request.registry&#91;&#039;mail.compose.message&#039;].create(cr, SUPERUSER_ID, composer_values, context=email_ctx)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/api.py&quot;, line 237, in wrapper<br />&nbsp; &nbsp; return old_api(self, *args, **kwargs)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/addons/mail/mail_message.py&quot;, line 804, in create<br />&nbsp; &nbsp; newid = super(mail_message, self).create(cr, uid, values, context)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/api.py&quot;, line 237, in wrapper<br />&nbsp; &nbsp; return old_api(self, *args, **kwargs)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/api.py&quot;, line 332, in old_api<br />&nbsp; &nbsp; result = method(recs, *args, **kwargs)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/models.py&quot;, line 3987, in create<br />&nbsp; &nbsp; vals = self._add_missing_default_values(vals)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/api.py&quot;, line 235, in wrapper<br />&nbsp; &nbsp; return new_api(self, *args, **kwargs)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/api.py&quot;, line 464, in new_api<br />&nbsp; &nbsp; result = method(self._model, cr, uid, *args, **kwargs)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/models.py&quot;, line 1810, in _add_missing_default_values<br />&nbsp; &nbsp; defaults = self.default_get(cr, uid, list(missing_defaults), context)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/api.py&quot;, line 237, in wrapper<br />&nbsp; &nbsp; return old_api(self, *args, **kwargs)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/addons/email_template/wizard/mail_compose_message.py&quot;, line 54, in default_get<br />&nbsp; &nbsp; res.get(&#039;model&#039;), res.get(&#039;res_id&#039;), context=context<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/api.py&quot;, line 237, in wrapper<br />&nbsp; &nbsp; return old_api(self, *args, **kwargs)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/addons/email_template/wizard/mail_compose_message.py&quot;, line 103, in onchange_template_id<br />&nbsp; &nbsp; values = self.generate_email_for_composer_batch(cr, uid, template_id, [res_id], context=context)[res_id]<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/api.py&quot;, line 237, in wrapper<br />&nbsp; &nbsp; return old_api(self, *args, **kwargs)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/addons/email_template/wizard/mail_compose_message.py&quot;, line 167, in generate_email_for_composer_batch<br />&nbsp; &nbsp; template_values = self.pool.get(&#039;email.template&#039;).generate_email_batch(cr, uid, template_id, res_ids, fields=fields, context=ctx)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/api.py&quot;, line 237, in wrapper<br />&nbsp; &nbsp; return old_api(self, *args, **kwargs)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/addons/email_template/email_template.py&quot;, line 514, in generate_email_batch<br />&nbsp; &nbsp; result, format = self.pool&#91;&#039;report&#039;].get_pdf(cr, uid, [res_id], report_service, context=ctx), &#039;pdf&#039;<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/api.py&quot;, line 237, in wrapper<br />&nbsp; &nbsp; return old_api(self, *args, **kwargs)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/addons/report/models/report.py&quot;, line 269, in get_pdf<br />&nbsp; &nbsp; paperformat, specific_paperformat_args, save_in_attachment<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/api.py&quot;, line 237, in wrapper<br />&nbsp; &nbsp; return old_api(self, *args, **kwargs)<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/addons/report/models/report.py&quot;, line 442, in _run_wkhtmltopdf<br />&nbsp; &nbsp; wkhtmltopdf = [_get_wkhtmltopdf_bin()] + command_args + local_command_args<br />&nbsp; File &quot;/usr/lib/python2.7/dist-packages/openerp/addons/report/models/report.py&quot;, line 54, in _get_wkhtmltopdf_bin<br />&nbsp; &nbsp; raise IOError<br />IOError
    


  • 通过apt安装wkhtmltopdf不行,需要下载软件包dpkg安装



  • apt 安装后, 好象默认会安装到  /usr/local/bin下, 你 link 一个到 /usr/bin 下即可....



  • 确实, /usr/local/bin有,谢谢