{"action":"opened","issue":{"url":"https://api.github.com/repos/killbill/killbill/issues/581","repository_url":"https://api.github.com/repos/killbill/killbill","labels_url":"https://api.github.com/repos/killbill/killbill/issues/581/labels{/name}","comments_url":"https://api.github.com/repos/killbill/killbill/issues/581/comments","events_url":"https://api.github.com/repos/killbill/killbill/issues/581/events","html_url":"https://github.com/killbill/killbill/issues/581","id":166224006,"number":581,"title":"Per-tenant invoice template is not found","user":{"login":"sbrossie","id":246910,"avatar_url":"https://avatars.githubusercontent.com/u/246910?v=3","gravatar_id":"","url":"https://api.github.com/users/sbrossie","html_url":"https://github.com/sbrossie","followers_url":"https://api.github.com/users/sbrossie/followers","following_url":"https://api.github.com/users/sbrossie/following{/other_user}","gists_url":"https://api.github.com/users/sbrossie/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrossie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrossie/subscriptions","organizations_url":"https://api.github.com/users/sbrossie/orgs","repos_url":"https://api.github.com/users/sbrossie/repos","events_url":"https://api.github.com/users/sbrossie/events{/privacy}","received_events_url":"https://api.github.com/users/sbrossie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/killbill/killbill/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/killbill/killbill/labels/INVOICE","name":"INVOICE","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-19T00:37:37Z","updated_at":"2016-07-19T00:37:37Z","closed_at":null,"body":"The issue has been reported on the [mailing list](https://groups.google.com/forum/#!searchin/killbilling-users/template/killbilling-users/bwph0duIZ-E/-7xulnygCgAJ).\r\n\r\nIt seems like we can correctly upload a per-tenant invoice template but then it is not used because the code assumes that such templates are per 'locale' (e.g code looks for a key in the `tenant_kvs` table that looks like `INVOICE_TEMPLATE_<locale>`). In reality such template is not per locale and after being uploaded the key is looks like `INVOICE_TEMPLATE`.\r\n\r\n"}}
{"actor":{"display_login":"sbrossie"}}