{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/14535","repository_url":"https://api.github.com/repos/odoo/odoo","labels_url":"https://api.github.com/repos/odoo/odoo/issues/14535/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/14535/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/14535/events","html_url":"https://github.com/odoo/odoo/issues/14535","id":192637693,"number":14535,"title":"[FIX][10.0] Handle raise IOError when wkhtmltopdf is not installed","user":{"login":"hugho-ad","id":10233975,"avatar_url":"https://avatars.githubusercontent.com/u/10233975?v=3","gravatar_id":"","url":"https://api.github.com/users/hugho-ad","html_url":"https://github.com/hugho-ad","followers_url":"https://api.github.com/users/hugho-ad/followers","following_url":"https://api.github.com/users/hugho-ad/following{/other_user}","gists_url":"https://api.github.com/users/hugho-ad/gists{/gist_id}","starred_url":"https://api.github.com/users/hugho-ad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugho-ad/subscriptions","organizations_url":"https://api.github.com/users/hugho-ad/orgs","repos_url":"https://api.github.com/users/hugho-ad/repos","events_url":"https://api.github.com/users/hugho-ad/events{/privacy}","received_events_url":"https://api.github.com/users/hugho-ad/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-30T18:06:14Z","updated_at":"2016-12-06T11:56:39Z","closed_at":"2016-12-03T13:45:05Z","body":"**Impacted versions:**\r\n10.0\r\n\r\n**Steps to reproduce:**\r\nOdoo js enviroment, has  kind of [global var](https://github.com/odoo/odoo/blob/fc2e80cb4bcc450762c7ac5cb82a3e2d88062b38/addons/report/static/src/js/qwebactionmanager.js#L14) which is updated when the page is refreshed or only one time when a `ir_actions_report_xml` event is triggered, that var contains the wkhtmltopdf status\r\n\r\nTo reproduce the error, a demo invoice record was taken to make the tests\r\n\r\n### The first scenario:\r\n- wkhtmltopdf => installed\r\n- Print the report => success\r\n- Load email wizard (No attachments related to invoice) => Success\r\n\r\n### The second scenario:\r\n![image](https://cloud.githubusercontent.com/assets/10233975/20764489/0824a16c-b6f4-11e6-9fc2-45c45852b954.png)\r\n\r\n**For the second scenario is necessary to restart the server after unistall wkhtmltopdf (Stop the server and start the server normally) and Refresh the page (F5)**\r\n- wkhtmltopdf => Not installed\r\n- Print the report => HTML VIEW ready to be printed by web browser\r\n- Load email wizard (No attachments related to invoice) => Fail (Trace back Reported)\r\n\r\n### The third scenario:\r\n\r\n**Trigger the trace back when printing the report: with the button Print Invoice**\r\n![image](https://cloud.githubusercontent.com/assets/10233975/20764538/3967f03a-b6f4-11e6-9702-f5eb5dc62023.png)\r\n\r\n\r\n\r\nFor the second scenario is necessary to restart the server after unistall wkhtmltopdf (Stop the server and start the server normally)\r\n**NOTE: NOT REFRESH THE PAGE**\r\n\r\n- wkhtmltopdf => Not installed\r\n- Print the report => Fail (Trace back Reported)\r\n- Load email wizard (No attachments related to invoice) => Fail (Trace back Reported)\r\n\r\n\r\nCurrent behavior:\r\nA raise error is triggered\r\nExpected behavior:\r\nTrigger the div modal instead of the traceback error\r\nVideo/Screenshot link (optional):\r\n\r\nhttps://drive.google.com/file/d/0B_jQX2tloXM7Y3owWFBjczYyaGc/view\r\n"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/265132413","html_url":"https://github.com/odoo/odoo/issues/14535#issuecomment-265132413","issue_url":"https://api.github.com/repos/odoo/odoo/issues/14535","id":265132413,"user":{"login":"mart-e","id":564822,"avatar_url":"https://avatars.githubusercontent.com/u/564822?v=3","gravatar_id":"","url":"https://api.github.com/users/mart-e","html_url":"https://github.com/mart-e","followers_url":"https://api.github.com/users/mart-e/followers","following_url":"https://api.github.com/users/mart-e/following{/other_user}","gists_url":"https://api.github.com/users/mart-e/gists{/gist_id}","starred_url":"https://api.github.com/users/mart-e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mart-e/subscriptions","organizations_url":"https://api.github.com/users/mart-e/orgs","repos_url":"https://api.github.com/users/mart-e/repos","events_url":"https://api.github.com/users/mart-e/events{/privacy}","received_events_url":"https://api.github.com/users/mart-e/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T11:56:39Z","updated_at":"2016-12-06T11:56:39Z","body":"Hello,\r\n\r\nWhen you uninstall a required dependency, I think it is expected to get a traceback, especially if you have some very specific steps like \"not refresh the page\".\r\nI am not sure what you expect to get, it simply can not work."}}
{"actor":{"display_login":"mart-e"}}