{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/10778","repository_url":"https://api.github.com/repos/odoo/odoo","labels_url":"https://api.github.com/repos/odoo/odoo/issues/10778/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/10778/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/10778/events","html_url":"https://github.com/odoo/odoo/issues/10778","id":131422300,"number":10778,"title":"Refund on Vendor Bill shows positive amount due not negative.","user":{"login":"elevationO","id":8355352,"avatar_url":"https://avatars.githubusercontent.com/u/8355352?v=3","gravatar_id":"","url":"https://api.github.com/users/elevationO","html_url":"https://github.com/elevationO","followers_url":"https://api.github.com/users/elevationO/followers","following_url":"https://api.github.com/users/elevationO/following{/other_user}","gists_url":"https://api.github.com/users/elevationO/gists{/gist_id}","starred_url":"https://api.github.com/users/elevationO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elevationO/subscriptions","organizations_url":"https://api.github.com/users/elevationO/orgs","repos_url":"https://api.github.com/users/elevationO/repos","events_url":"https://api.github.com/users/elevationO/events{/privacy}","received_events_url":"https://api.github.com/users/elevationO/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-04T17:44:45Z","updated_at":"2016-02-05T11:15:31Z","closed_at":"2016-02-05T11:15:31Z","body":"The aged payables report shows the correct amount but the vendor bill is shown as a bill not a credit.\r\n![screen-shot-2016-02-04-at-9 33 24-am](https://cloud.githubusercontent.com/assets/8355352/12824001/e10ae530-cb23-11e5-966c-f7d5d089d49a.png)\r\n"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/180303353","html_url":"https://github.com/odoo/odoo/issues/10778#issuecomment-180303353","issue_url":"https://api.github.com/repos/odoo/odoo/issues/10778","id":180303353,"user":{"login":"csnauwaert","id":7338483,"avatar_url":"https://avatars.githubusercontent.com/u/7338483?v=3","gravatar_id":"","url":"https://api.github.com/users/csnauwaert","html_url":"https://github.com/csnauwaert","followers_url":"https://api.github.com/users/csnauwaert/followers","following_url":"https://api.github.com/users/csnauwaert/following{/other_user}","gists_url":"https://api.github.com/users/csnauwaert/gists{/gist_id}","starred_url":"https://api.github.com/users/csnauwaert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csnauwaert/subscriptions","organizations_url":"https://api.github.com/users/csnauwaert/orgs","repos_url":"https://api.github.com/users/csnauwaert/repos","events_url":"https://api.github.com/users/csnauwaert/events{/privacy}","received_events_url":"https://api.github.com/users/csnauwaert/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T11:15:31Z","updated_at":"2016-02-05T11:15:31Z","body":"Hello, actually your use case is really strange. It seems you are trying to do a refund using a bill with negative products quantities. That is not the way you create a refund. If you want to create a refund you can do it in 2 different ways: \r\n\r\nEither from an existing invoice/bill by clicking the \"create/ask refund\" or via the accounting dashboard:\r\n![screenshot from 2016-02-05 11 46 52](https://cloud.githubusercontent.com/assets/7338483/12844745/9d3ee43a-cc01-11e5-8193-4cbd7bd709e6.png)\r\n\r\nThe fact that the amount due is positive is because the type of invoice is 'out_invoice', if you create a refund the correct way, the type would be 'out_refund' and it will appear correctly on the tree view as negative.\r\n\r\nHope that helps you"}}