{"action":"created","issue":{"url":"https://api.github.com/repos/OCA/l10n-switzerland/issues/112","labels_url":"https://api.github.com/repos/OCA/l10n-switzerland/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/OCA/l10n-switzerland/issues/112/comments","events_url":"https://api.github.com/repos/OCA/l10n-switzerland/issues/112/events","html_url":"https://github.com/OCA/l10n-switzerland/pull/112","id":59783756,"number":112,"title":"Allow canceling draft invoices","user":{"login":"BT-csanchez","id":9008369,"avatar_url":"https://avatars.githubusercontent.com/u/9008369?v=3","gravatar_id":"","url":"https://api.github.com/users/BT-csanchez","html_url":"https://github.com/BT-csanchez","followers_url":"https://api.github.com/users/BT-csanchez/followers","following_url":"https://api.github.com/users/BT-csanchez/following{/other_user}","gists_url":"https://api.github.com/users/BT-csanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/BT-csanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BT-csanchez/subscriptions","organizations_url":"https://api.github.com/users/BT-csanchez/orgs","repos_url":"https://api.github.com/users/BT-csanchez/repos","events_url":"https://api.github.com/users/BT-csanchez/events{/privacy}","received_events_url":"https://api.github.com/users/BT-csanchez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-04T11:13:12Z","updated_at":"2015-03-23T16:51:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OCA/l10n-switzerland/pulls/112","html_url":"https://github.com/OCA/l10n-switzerland/pull/112","diff_url":"https://github.com/OCA/l10n-switzerland/pull/112.diff","patch_url":"https://github.com/OCA/l10n-switzerland/pull/112.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/OCA/l10n-switzerland/issues/comments/85092434","html_url":"https://github.com/OCA/l10n-switzerland/pull/112#issuecomment-85092434","issue_url":"https://api.github.com/repos/OCA/l10n-switzerland/issues/112","id":85092434,"user":{"login":"yvaucher","id":4158438,"avatar_url":"https://avatars.githubusercontent.com/u/4158438?v=3","gravatar_id":"","url":"https://api.github.com/users/yvaucher","html_url":"https://github.com/yvaucher","followers_url":"https://api.github.com/users/yvaucher/followers","following_url":"https://api.github.com/users/yvaucher/following{/other_user}","gists_url":"https://api.github.com/users/yvaucher/gists{/gist_id}","starred_url":"https://api.github.com/users/yvaucher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yvaucher/subscriptions","organizations_url":"https://api.github.com/users/yvaucher/orgs","repos_url":"https://api.github.com/users/yvaucher/repos","events_url":"https://api.github.com/users/yvaucher/events{/privacy}","received_events_url":"https://api.github.com/users/yvaucher/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T16:51:29Z","updated_at":"2015-03-23T16:51:29Z","body":"@guewen Oh wait it seems you are right good catch\r\n\r\n@BT-csanchez Don't you mean:\r\n\r\n    if invoice.state in ('draft', 'cancel'):\r\n        continue\r\n\r\nThe `not` shouldn't be there I think."}}