{"action":"created","issue":{"url":"https://api.github.com/repos/OCA/bank-payment/issues/162","labels_url":"https://api.github.com/repos/OCA/bank-payment/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/OCA/bank-payment/issues/162/comments","events_url":"https://api.github.com/repos/OCA/bank-payment/issues/162/events","html_url":"https://github.com/OCA/bank-payment/issues/162","id":71287825,"number":162,"title":"8.0 account_direct_debit: cannot use button \"Debit Denied\" on invoice","user":{"login":"alexis-via","id":1157917,"avatar_url":"https://avatars.githubusercontent.com/u/1157917?v=3","gravatar_id":"","url":"https://api.github.com/users/alexis-via","html_url":"https://github.com/alexis-via","followers_url":"https://api.github.com/users/alexis-via/followers","following_url":"https://api.github.com/users/alexis-via/following{/other_user}","gists_url":"https://api.github.com/users/alexis-via/gists{/gist_id}","starred_url":"https://api.github.com/users/alexis-via/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexis-via/subscriptions","organizations_url":"https://api.github.com/users/alexis-via/orgs","repos_url":"https://api.github.com/users/alexis-via/repos","events_url":"https://api.github.com/users/alexis-via/events{/privacy}","received_events_url":"https://api.github.com/users/alexis-via/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-27T13:40:51Z","updated_at":"2015-05-06T15:35:45Z","closed_at":null,"body":"I'm trying to understand how the \"storno\" field on payment.line defined in the module account_direct_debit works.\r\n\r\nHere is my code analysis for the module account_direct_debit for v8:\r\nin views/account_invoice.xml we have:\r\n\r\n```\r\n<button name=\"invoice_debit_denied\" states=\"paid\" string=\"Debit Denied\"/>\r\n```\r\nSo the \"Debit Denied\" button is only shown when the invoice is Paid.\r\n\r\nthen, when you look at workflow/account_invoice.xml line 18, we find the signal \"invoice_debit_denied\" which go from account.act_paid to act_debit_denied. The workflow activity \"act_debit_denied\" will execute the method action_debit_denied(). This method is defined in models/account_invoice.py and raise an error message \"You cannot set invoice <invoice_number> to state 'debit denied', as it is still reconciled.\" when test_paid() is True... which is always the case because the button \"Debit Denied\" is visible only when the state of the invoice is paid !\r\n\r\nSo, what is the use of the \"Debit Denied\" button on the invoice ? Can it lead to something else than an error message ? Maybe I mis-understand the use of this feature..."},"comment":{"url":"https://api.github.com/repos/OCA/bank-payment/issues/comments/99515929","html_url":"https://github.com/OCA/bank-payment/issues/162#issuecomment-99515929","issue_url":"https://api.github.com/repos/OCA/bank-payment/issues/162","id":99515929,"user":{"login":"StefanRijnhart","id":1033124,"avatar_url":"https://avatars.githubusercontent.com/u/1033124?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanRijnhart","html_url":"https://github.com/StefanRijnhart","followers_url":"https://api.github.com/users/StefanRijnhart/followers","following_url":"https://api.github.com/users/StefanRijnhart/following{/other_user}","gists_url":"https://api.github.com/users/StefanRijnhart/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanRijnhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanRijnhart/subscriptions","organizations_url":"https://api.github.com/users/StefanRijnhart/orgs","repos_url":"https://api.github.com/users/StefanRijnhart/repos","events_url":"https://api.github.com/users/StefanRijnhart/events{/privacy}","received_events_url":"https://api.github.com/users/StefanRijnhart/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T15:35:45Z","updated_at":"2015-05-06T15:35:45Z","body":"It's detected in some of the old banking addons filters. By the way, I remembered a possible use case for the button. If you unreconcile a move from an invoice, the invoice status remains unchanged (or it did in 6.1). You could then use the button to update the invoice state."}}