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

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

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

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

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



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



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



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



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



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


登录后回复
 

与 Odoo 中文社区 的连接断开,我们正在尝试重连,请耐心等待