{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/5126","labels_url":"https://api.github.com/repos/odoo/odoo/issues/5126/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/5126/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/5126/events","html_url":"https://github.com/odoo/odoo/issues/5126","id":56819103,"number":5126,"title":"Odoo 8 minimal produces Error on loading SO-Mail-Template","user":{"login":"explanar","id":840301,"avatar_url":"https://avatars.githubusercontent.com/u/840301?v=3","gravatar_id":"","url":"https://api.github.com/users/explanar","html_url":"https://github.com/explanar","followers_url":"https://api.github.com/users/explanar/followers","following_url":"https://api.github.com/users/explanar/following{/other_user}","gists_url":"https://api.github.com/users/explanar/gists{/gist_id}","starred_url":"https://api.github.com/users/explanar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/explanar/subscriptions","organizations_url":"https://api.github.com/users/explanar/orgs","repos_url":"https://api.github.com/users/explanar/repos","events_url":"https://api.github.com/users/explanar/events{/privacy}","received_events_url":"https://api.github.com/users/explanar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-06T14:39:33Z","updated_at":"2015-03-27T16:22:50Z","closed_at":"2015-02-06T15:14:48Z","body":"It is a minimal Odoo8 Installation non SSL on Ubuntu 14.04 LTS Server with 1 testproduct, 1 admin and 1 customer.\r\nCompany-Data is completed including bank account.\r\n\r\nInstalled Modules: \r\n- eCommerce and dependencies\r\n- Website-Chat\r\n- all Payment acquirers\r\n\r\nThe only Order is 3x Testproduct, confirmed by admin, ordered by testcustomer via eCommerce Module without generating an account (just filled the contact form in order-process).\r\n\r\nNow, by opening the Sales order an clicking the \"send Message\" button, the error occurs when i try to load the template for Invoices (the standard template with paypal-Button).\r\n\r\nError MSG:\r\n````\r\nTraceback (most recent call last):\r\n  File \"/opt/odoo/odoo-server/openerp/http.py\", line 524, in _handle_exception\r\n    return super(JsonRequest, self)._handle_exception(exception)\r\n  File \"/opt/odoo/odoo-server/openerp/http.py\", line 545, in dispatch\r\n    result = self._call_function(**self.params)\r\n  File \"/opt/odoo/odoo-server/openerp/http.py\", line 301, in _call_function\r\n    return checked_call(self.db, *args, **kwargs)\r\n  File \"/opt/odoo/odoo-server/openerp/service/model.py\", line 113, in wrapper\r\n    return f(dbname, *args, **kwargs)\r\n  File \"/opt/odoo/odoo-server/openerp/http.py\", line 298, in checked_call\r\n    return self.endpoint(*a, **kw)\r\n  File \"/opt/odoo/odoo-server/openerp/http.py\", line 761, in __call__\r\n    return self.method(*args, **kw)\r\n  File \"/opt/odoo/odoo-server/openerp/http.py\", line 394, in response_wrap\r\n    response = f(*args, **kw)\r\n  File \"/opt/odoo/odoo-server/addons/web/controllers/main.py\", line 949, in call_kw\r\n    return self._call_kw(model, method, args, kwargs)\r\n  File \"/opt/odoo/odoo-server/addons/web/controllers/main.py\", line 941, in _call_kw\r\n    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)\r\n  File \"/opt/odoo/odoo-server/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/odoo-server/openerp/api.py\", line 360, in old_api\r\n    result = method(recs, *args, **kwargs)\r\n  File \"/opt/odoo/odoo-server/openerp/models.py\", line 5768, in onchange\r\n    record._onchange_eval(name, field_onchange[name], result)\r\n  File \"/opt/odoo/odoo-server/openerp/models.py\", line 5702, in _onchange_eval\r\n    method_res = getattr(self._model, method)(*args)\r\n  File \"/opt/odoo/odoo-server/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/odoo-server/addons/email_template/wizard/mail_compose_message.py\", line 103, in onchange_template_id\r\n    values = self.generate_email_for_composer_batch(cr, uid, template_id, [res_id], context=context)[res_id]\r\n  File \"/opt/odoo/odoo-server/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/odoo-server/addons/email_template/wizard/mail_compose_message.py\", line 167, in generate_email_for_composer_batch\r\n    template_values = self.pool.get('email.template').generate_email_batch(cr, uid, template_id, res_ids, fields=fields, context=ctx)\r\n  File \"/opt/odoo/odoo-server/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/odoo-server/addons/email_template/email_template.py\", line 514, in generate_email_batch\r\n    result, format = self.pool['report'].get_pdf(cr, uid, [res_id], report_service, context=ctx), 'pdf'\r\n  File \"/opt/odoo/odoo-server/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/odoo-server/addons/report/models/report.py\", line 269, in get_pdf\r\n    paperformat, specific_paperformat_args, save_in_attachment\r\n  File \"/opt/odoo/odoo-server/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/opt/odoo/odoo-server/addons/report/models/report.py\", line 442, in _run_wkhtmltopdf\r\n    wkhtmltopdf = [_get_wkhtmltopdf_bin()] + command_args + local_command_args\r\n  File \"/opt/odoo/odoo-server/addons/report/models/report.py\", line 54, in _get_wkhtmltopdf_bin\r\n    raise IOError\r\nIOError\r\n````"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/86994784","html_url":"https://github.com/odoo/odoo/issues/5126#issuecomment-86994784","issue_url":"https://api.github.com/repos/odoo/odoo/issues/5126","id":86994784,"user":{"login":"bwilmus","id":951244,"avatar_url":"https://avatars.githubusercontent.com/u/951244?v=3","gravatar_id":"","url":"https://api.github.com/users/bwilmus","html_url":"https://github.com/bwilmus","followers_url":"https://api.github.com/users/bwilmus/followers","following_url":"https://api.github.com/users/bwilmus/following{/other_user}","gists_url":"https://api.github.com/users/bwilmus/gists{/gist_id}","starred_url":"https://api.github.com/users/bwilmus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwilmus/subscriptions","organizations_url":"https://api.github.com/users/bwilmus/orgs","repos_url":"https://api.github.com/users/bwilmus/repos","events_url":"https://api.github.com/users/bwilmus/events{/privacy}","received_events_url":"https://api.github.com/users/bwilmus/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T16:22:50Z","updated_at":"2015-03-27T16:22:50Z","body":"Be carefull with wkhtmltopdf:\r\nDanger\r\nto print PDF reports, you must install wkhtmltopdf yourself: the version of wkhtmltopdf available in debian repositories does not support headers and footers so it can not be installed automatically. The recommended version is 0.12.1 and is available on the wkhtmltopdf download page, in the archive section. As there is no official release for Debian Jessie, you can find ours on http://nightly.odoo.com/extra/."}}