{"action":"opened","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/13230","repository_url":"https://api.github.com/repos/odoo/odoo","labels_url":"https://api.github.com/repos/odoo/odoo/issues/13230/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/13230/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/13230/events","html_url":"https://github.com/odoo/odoo/issues/13230","id":172167980,"number":13230,"title":"[master][account_reports]  QWebException: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)","user":{"login":"jeffery9","id":1404460,"avatar_url":"https://avatars.githubusercontent.com/u/1404460?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffery9","html_url":"https://github.com/jeffery9","followers_url":"https://api.github.com/users/jeffery9/followers","following_url":"https://api.github.com/users/jeffery9/following{/other_user}","gists_url":"https://api.github.com/users/jeffery9/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffery9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffery9/subscriptions","organizations_url":"https://api.github.com/users/jeffery9/orgs","repos_url":"https://api.github.com/users/jeffery9/repos","events_url":"https://api.github.com/users/jeffery9/events{/privacy}","received_events_url":"https://api.github.com/users/jeffery9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-19T16:19:04Z","updated_at":"2016-08-19T16:19:04Z","closed_at":null,"body":"Impacted versions:\r\n\r\nmaster\r\n\r\nSteps to reproduce:\r\n\r\ninstalled Chinese language support, and switch to Chinese\r\n\r\nopen report `Trial Balance`  like screen snapshot.\r\n\r\nCurrent behavior:\r\n\r\nraise encoding error.\r\n\r\n```\r\nQWebException: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)\r\nTraceback (most recent call last):\r\n  File \"/opt/odoo/odoo10e/openerp/addons/base/ir/ir_qweb/qweb.py\", line 312, in _compiled_fn\r\n    return compiled(self, append, values, options, log)\r\n  File \"<template>\", line 1, in template_account_reports_report_financial_body_124\r\n  File \"/opt/odoo/odoo10e/addons/account_reports/models/account_report_coa.py\", line 126, in get_columns_names\r\n    columns = [_('Debit') + '<br/>' + temp.decode(\"utf-8\"), _('Credit')]\r\n  File \"/usr/lib/python2.7/encodings/utf_8.py\", line 16, in decode\r\n    return codecs.utf_8_decode(input, errors, True)\r\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)\r\n\r\nError to render compiling AST\r\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)\r\nTemplate: account_reports.report_financial_body\r\nPath: /templates/t/div/div[5]/table/thead/tr/t[2]\r\nNode: <t t-foreach=\"context.get_columns_names()\" t-as=\"column_name\">\r\n                            <t t-set=\"column\" t-value=\"column + 1\"/>\r\n                            <th t-att-class=\"context.get_columns_types()[column - 1] == 'number' and 'text-right' or context.get_columns_types()[column - 1] == 'text' and  'text-left' or 'text-center'\" t-raw=\"column_name\" t-att-width=\"context.get_columns_types()[column - 1] == 'number' and '1%' or ''\" style=\"padding-left: 15px;\"/>\r\n                        </t>\r\n                    \r\n```\r\n\r\nExpected behavior:\r\n\r\nVideo/Screenshot link (optional):\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1404460/17816385/76cae8b2-666b-11e6-9239-e54313c72365.png)\r\n"}}
{"actor":{"display_login":"jeffery9"}}