odoo不能通过电子邮件确认订单

时间:2016-02-15 13:34:43

标签: python odoo-8

我在synology Rackstation上安装了新的odoo 8,但在发送电子邮件时遇到问题:例如:确认销售订单给客户。

Odoo配置:Odoo-8,Webstation on

  • 从Odoo管理员发送电子邮件 - >电子邮件 - 电子邮件没问题
  • Odoo正在发送确认销售订单的自动“系统通知”:文档型号:sale.order,OK
  • 打印销售订单 - 确定,但缺少警告wkhtmltopdf
  • 通过电子邮件确认销售订单 - 不好 - >错误

    OpenERP服务器错误

    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 499, in _handle_exception
        return super(JsonRequest, self)._handle_exception(exception)
      File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 516, in dispatch
        result = self._call_function(**self.params)
      File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 282, in _call_function
        return checked_call(self.db, *args, **kwargs)
      File "/usr/local/lib/python2.7/site-packages/openerp/service/model.py", line 113, in wrapper
        return f(dbname, *args, **kwargs)
      File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 279, in checked_call
        return self.endpoint(*a, **kw)
      File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 732, in __call__
        return self.method(*args, **kw)
      File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 375, in response_wrap
        response = f(*args, **kw)
      File "/var/packages/Odoo8/target/addons/web/controllers/main.py", line 944, in call_kw
        return self._call_kw(model, method, args, kwargs)
      File "/var/packages/Odoo8/target/addons/web/controllers/main.py", line 936, in _call_kw
        return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
      File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
        return old_api(self, *args, **kwargs)
      File "/var/packages/Odoo8/target/addons/email_template/wizard/mail_compose_message.py", line 54, in default_get
        res.get('model'), res.get('res_id'), context=context
      File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
        return old_api(self, *args, **kwargs)
      File "/var/packages/Odoo8/target/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/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
        return old_api(self, *args, **kwargs)
      File "/var/packages/Odoo8/target/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/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
        return old_api(self, *args, **kwargs)
      File "/var/packages/Odoo8/target/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/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
        return old_api(self, *args, **kwargs)
      File "/var/packages/Odoo8/target/addons/report/models/report.py", line 252, in get_pdf
        paperformat, specific_paperformat_args, save_in_attachment
      File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
        return old_api(self, *args, **kwargs)
      File "/var/packages/Odoo8/target/addons/report/models/report.py", line 416, in _run_wkhtmltopdf
        process = subprocess.Popen(wkhtmltopdf, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
      File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
        errread, errwrite)
      File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
        raise child_exception
    OSError: [Errno 2] No such file or directory
    

我不确定问题是否只是缺少的subprocess.Popen(wkhtmltopdf ...或710或1335行的脚本错误?

我没有下载脚本,但可能有人知道subprocess.py,因为我没有python经验。

谢谢!

0 个答案:

没有答案