{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/27479","repository_url":"https://api.github.com/repos/odoo/odoo","labels_url":"https://api.github.com/repos/odoo/odoo/issues/27479/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/27479/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/27479/events","html_url":"https://github.com/odoo/odoo/pull/27479","id":367489672,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwOTA3NTMx","number":27479,"title":"[12.0] invoice report, various corrections","user":{"login":"celm1990","id":7775116,"node_id":"MDQ6VXNlcjc3NzUxMTY=","avatar_url":"https://avatars1.githubusercontent.com/u/7775116?v=4","gravatar_id":"","url":"https://api.github.com/users/celm1990","html_url":"https://github.com/celm1990","followers_url":"https://api.github.com/users/celm1990/followers","following_url":"https://api.github.com/users/celm1990/following{/other_user}","gists_url":"https://api.github.com/users/celm1990/gists{/gist_id}","starred_url":"https://api.github.com/users/celm1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celm1990/subscriptions","organizations_url":"https://api.github.com/users/celm1990/orgs","repos_url":"https://api.github.com/users/celm1990/repos","events_url":"https://api.github.com/users/celm1990/events{/privacy}","received_events_url":"https://api.github.com/users/celm1990/received_events","type":"User","site_admin":false},"labels":[{"id":1044840932,"node_id":"MDU6TGFiZWwxMDQ0ODQwOTMy","url":"https://api.github.com/repos/odoo/odoo/labels/CI%20%F0%9F%A4%96","name":"CI 🤖","color":"ededed","default":false},{"id":1044215768,"node_id":"MDU6TGFiZWwxMDQ0MjE1NzY4","url":"https://api.github.com/repos/odoo/odoo/labels/seen%20%F0%9F%99%82","name":"seen 🙂","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-06T19:46:45Z","updated_at":"2018-11-01T19:41:27Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/odoo/odoo/pulls/27479","html_url":"https://github.com/odoo/odoo/pull/27479","diff_url":"https://github.com/odoo/odoo/pull/27479.diff","patch_url":"https://github.com/odoo/odoo/pull/27479.patch"},"body":"Description of the issue/feature this PR addresses:\r\n**Two problems found:**\r\n1.- invoice analysis, field amount_total signed incorrectly, out_invoice must sum, out_refund must be subtract (but are sum), in_invoice must be subtract and in_refund must be sum (but are subtract)\r\n\r\n_Customer Invoices_\r\n![image](https://user-images.githubusercontent.com/7775116/46575118-cb710e80-c99e-11e8-832f-b10dc9ab31ae.png)\r\n\r\n_Customer refunds_\r\n![image](https://user-images.githubusercontent.com/7775116/46575131-ed6a9100-c99e-11e8-9ffb-931848e5833f.png)\r\n\r\n_Invoices and refunds must be zero_\r\n![image](https://user-images.githubusercontent.com/7775116/46575135-0c692300-c99f-11e8-89fc-a630871d8691.png)\r\n**Same error for Supplier invoices and Refunds**\r\n\r\nFirst commit is complementary to 7b87212ea851518a641f65a71dc094cf88507cdc and  e890682656b4739f489d34b954a1b1e8d9f78065\r\n\r\n\r\n2.- Product Quantity is null on invoice analysis when no set product_uom in accont_invoice_line(product not fill on invoice lines or is a line of service, only description is entered)\r\n\r\nCreate invoice without UoM\r\n![image](https://user-images.githubusercontent.com/7775116/46575192-235c4500-c9a0-11e8-891b-fdf5013860c7.png)\r\n\r\n![image](https://user-images.githubusercontent.com/7775116/46575196-4a1a7b80-c9a0-11e8-9203-c0ef11aba1c6.png)\r\n\r\nCurrent behavior before PR:\r\n\r\nDesired behavior after PR is merged:\r\n\r\n\r\n\r\n\r\n--\r\nI confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr\r\n"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/435161686","html_url":"https://github.com/odoo/odoo/pull/27479#issuecomment-435161686","issue_url":"https://api.github.com/repos/odoo/odoo/issues/27479","id":435161686,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTE2MTY4Ng==","user":{"login":"sswapnesh","id":16624719,"node_id":"MDQ6VXNlcjE2NjI0NzE5","avatar_url":"https://avatars1.githubusercontent.com/u/16624719?v=4","gravatar_id":"","url":"https://api.github.com/users/sswapnesh","html_url":"https://github.com/sswapnesh","followers_url":"https://api.github.com/users/sswapnesh/followers","following_url":"https://api.github.com/users/sswapnesh/following{/other_user}","gists_url":"https://api.github.com/users/sswapnesh/gists{/gist_id}","starred_url":"https://api.github.com/users/sswapnesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sswapnesh/subscriptions","organizations_url":"https://api.github.com/users/sswapnesh/orgs","repos_url":"https://api.github.com/users/sswapnesh/repos","events_url":"https://api.github.com/users/sswapnesh/events{/privacy}","received_events_url":"https://api.github.com/users/sswapnesh/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T19:41:27Z","updated_at":"2018-11-01T19:41:27Z","author_association":"CONTRIBUTOR","body":"I can confirm this as Bug.  "}}
{"actor":{"display_login":"sswapnesh"}}