{"action":"opened","number":12423,"pull_request":{"url":"https://api.github.com/repos/odoo/odoo/pulls/12423","id":73833947,"html_url":"https://github.com/odoo/odoo/pull/12423","diff_url":"https://github.com/odoo/odoo/pull/12423.diff","patch_url":"https://github.com/odoo/odoo/pull/12423.patch","issue_url":"https://api.github.com/repos/odoo/odoo/issues/12423","number":12423,"state":"open","locked":false,"title":" [FIX] stock_history report database view when stock_move quantity = 0","user":{"login":"sadamo","id":8259094,"avatar_url":"https://avatars.githubusercontent.com/u/8259094?v=3","gravatar_id":"","url":"https://api.github.com/users/sadamo","html_url":"https://github.com/sadamo","followers_url":"https://api.github.com/users/sadamo/followers","following_url":"https://api.github.com/users/sadamo/following{/other_user}","gists_url":"https://api.github.com/users/sadamo/gists{/gist_id}","starred_url":"https://api.github.com/users/sadamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sadamo/subscriptions","organizations_url":"https://api.github.com/users/sadamo/orgs","repos_url":"https://api.github.com/users/sadamo/repos","events_url":"https://api.github.com/users/sadamo/events{/privacy}","received_events_url":"https://api.github.com/users/sadamo/received_events","type":"User","site_admin":false},"body":"Description of the issue/feature this PR addresses:\r\nAn error of division by zero in the database view of stock_history.\r\n\r\nCurrent behavior before PR:\r\nTo reproduce the issue, in a database with stock_account module installed, we create a stock picking where we select the same source and destination location for a move (Should this be possible?). Then when we go to Warehouse > Inventory Control > Current Inventory Valuation. There should be a error of division by 0.\r\n\r\nDesired behavior after PR is merged:\r\nEven if there is a stock move with the same source and destination location, we should be able to access the Current Inventory Valuation.\r\n\r\n--\r\nI confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr","created_at":"2016-06-15T00:05:56Z","updated_at":"2016-06-15T00:05:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/odoo/odoo/pulls/12423/commits","review_comments_url":"https://api.github.com/repos/odoo/odoo/pulls/12423/comments","review_comment_url":"https://api.github.com/repos/odoo/odoo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/12423/comments","statuses_url":"https://api.github.com/repos/odoo/odoo/statuses/8ff99e681ac46981ffde2fa27d67e842909ede7d","head":{"label":"sadamo:patch-1","ref":"patch-1","sha":"8ff99e681ac46981ffde2fa27d67e842909ede7d","user":{"login":"sadamo","id":8259094,"avatar_url":"https://avatars.githubusercontent.com/u/8259094?v=3","gravatar_id":"","url":"https://api.github.com/users/sadamo","html_url":"https://github.com/sadamo","followers_url":"https://api.github.com/users/sadamo/followers","following_url":"https://api.github.com/users/sadamo/following{/other_user}","gists_url":"https://api.github.com/users/sadamo/gists{/gist_id}","starred_url":"https://api.github.com/users/sadamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sadamo/subscriptions","organizations_url":"https://api.github.com/users/sadamo/orgs","repos_url":"https://api.github.com/users/sadamo/repos","events_url":"https://api.github.com/users/sadamo/events{/privacy}","received_events_url":"https://api.github.com/users/sadamo/received_events","type":"User","site_admin":false},"repo":{"id":61164128,"name":"odoo","full_name":"sadamo/odoo","owner":{"login":"sadamo","id":8259094,"avatar_url":"https://avatars.githubusercontent.com/u/8259094?v=3","gravatar_id":"","url":"https://api.github.com/users/sadamo","html_url":"https://github.com/sadamo","followers_url":"https://api.github.com/users/sadamo/followers","following_url":"https://api.github.com/users/sadamo/following{/other_user}","gists_url":"https://api.github.com/users/sadamo/gists{/gist_id}","starred_url":"https://api.github.com/users/sadamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sadamo/subscriptions","organizations_url":"https://api.github.com/users/sadamo/orgs","repos_url":"https://api.github.com/users/sadamo/repos","events_url":"https://api.github.com/users/sadamo/events{/privacy}","received_events_url":"https://api.github.com/users/sadamo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sadamo/odoo","description":"Odoo (formerly OpenERP). Open Source Apps To Grow Your Business.","fork":true,"url":"https://api.github.com/repos/sadamo/odoo","forks_url":"https://api.github.com/repos/sadamo/odoo/forks","keys_url":"https://api.github.com/repos/sadamo/odoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sadamo/odoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sadamo/odoo/teams","hooks_url":"https://api.github.com/repos/sadamo/odoo/hooks","issue_events_url":"https://api.github.com/repos/sadamo/odoo/issues/events{/number}","events_url":"https://api.github.com/repos/sadamo/odoo/events","assignees_url":"https://api.github.com/repos/sadamo/odoo/assignees{/user}","branches_url":"https://api.github.com/repos/sadamo/odoo/branches{/branch}","tags_url":"https://api.github.com/repos/sadamo/odoo/tags","blobs_url":"https://api.github.com/repos/sadamo/odoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sadamo/odoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sadamo/odoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/sadamo/odoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sadamo/odoo/statuses/{sha}","languages_url":"https://api.github.com/repos/sadamo/odoo/languages","stargazers_url":"https://api.github.com/repos/sadamo/odoo/stargazers","contributors_url":"https://api.github.com/repos/sadamo/odoo/contributors","subscribers_url":"https://api.github.com/repos/sadamo/odoo/subscribers","subscription_url":"https://api.github.com/repos/sadamo/odoo/subscription","commits_url":"https://api.github.com/repos/sadamo/odoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/sadamo/odoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/sadamo/odoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/sadamo/odoo/issues/comments{/number}","contents_url":"https://api.github.com/repos/sadamo/odoo/contents/{+path}","compare_url":"https://api.github.com/repos/sadamo/odoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sadamo/odoo/merges","archive_url":"https://api.github.com/repos/sadamo/odoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sadamo/odoo/downloads","issues_url":"https://api.github.com/repos/sadamo/odoo/issues{/number}","pulls_url":"https://api.github.com/repos/sadamo/odoo/pulls{/number}","milestones_url":"https://api.github.com/repos/sadamo/odoo/milestones{/number}","notifications_url":"https://api.github.com/repos/sadamo/odoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sadamo/odoo/labels{/name}","releases_url":"https://api.github.com/repos/sadamo/odoo/releases{/id}","deployments_url":"https://api.github.com/repos/sadamo/odoo/deployments","created_at":"2016-06-15T00:01:58Z","updated_at":"2016-06-15T00:03:23Z","pushed_at":"2016-06-15T00:04:35Z","git_url":"git://github.com/sadamo/odoo.git","ssh_url":"git@github.com:sadamo/odoo.git","clone_url":"https://github.com/sadamo/odoo.git","svn_url":"https://github.com/sadamo/odoo","homepage":"https://www.odoo.com","size":1424725,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"9.0"}},"base":{"label":"odoo:8.0","ref":"8.0","sha":"baa4cc0e971919cf950ba696683910cc337749b4","user":{"login":"odoo","id":6368483,"avatar_url":"https://avatars.githubusercontent.com/u/6368483?v=3","gravatar_id":"","url":"https://api.github.com/users/odoo","html_url":"https://github.com/odoo","followers_url":"https://api.github.com/users/odoo/followers","following_url":"https://api.github.com/users/odoo/following{/other_user}","gists_url":"https://api.github.com/users/odoo/gists{/gist_id}","starred_url":"https://api.github.com/users/odoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odoo/subscriptions","organizations_url":"https://api.github.com/users/odoo/orgs","repos_url":"https://api.github.com/users/odoo/repos","events_url":"https://api.github.com/users/odoo/events{/privacy}","received_events_url":"https://api.github.com/users/odoo/received_events","type":"Organization","site_admin":false},"repo":{"id":19745004,"name":"odoo","full_name":"odoo/odoo","owner":{"login":"odoo","id":6368483,"avatar_url":"https://avatars.githubusercontent.com/u/6368483?v=3","gravatar_id":"","url":"https://api.github.com/users/odoo","html_url":"https://github.com/odoo","followers_url":"https://api.github.com/users/odoo/followers","following_url":"https://api.github.com/users/odoo/following{/other_user}","gists_url":"https://api.github.com/users/odoo/gists{/gist_id}","starred_url":"https://api.github.com/users/odoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odoo/subscriptions","organizations_url":"https://api.github.com/users/odoo/orgs","repos_url":"https://api.github.com/users/odoo/repos","events_url":"https://api.github.com/users/odoo/events{/privacy}","received_events_url":"https://api.github.com/users/odoo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/odoo/odoo","description":"Odoo (formerly OpenERP). Open Source Apps To Grow Your Business.","fork":false,"url":"https://api.github.com/repos/odoo/odoo","forks_url":"https://api.github.com/repos/odoo/odoo/forks","keys_url":"https://api.github.com/repos/odoo/odoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/odoo/odoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/odoo/odoo/teams","hooks_url":"https://api.github.com/repos/odoo/odoo/hooks","issue_events_url":"https://api.github.com/repos/odoo/odoo/issues/events{/number}","events_url":"https://api.github.com/repos/odoo/odoo/events","assignees_url":"https://api.github.com/repos/odoo/odoo/assignees{/user}","branches_url":"https://api.github.com/repos/odoo/odoo/branches{/branch}","tags_url":"https://api.github.com/repos/odoo/odoo/tags","blobs_url":"https://api.github.com/repos/odoo/odoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/odoo/odoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/odoo/odoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/odoo/odoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/odoo/odoo/statuses/{sha}","languages_url":"https://api.github.com/repos/odoo/odoo/languages","stargazers_url":"https://api.github.com/repos/odoo/odoo/stargazers","contributors_url":"https://api.github.com/repos/odoo/odoo/contributors","subscribers_url":"https://api.github.com/repos/odoo/odoo/subscribers","subscription_url":"https://api.github.com/repos/odoo/odoo/subscription","commits_url":"https://api.github.com/repos/odoo/odoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/odoo/odoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/odoo/odoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/odoo/odoo/issues/comments{/number}","contents_url":"https://api.github.com/repos/odoo/odoo/contents/{+path}","compare_url":"https://api.github.com/repos/odoo/odoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/odoo/odoo/merges","archive_url":"https://api.github.com/repos/odoo/odoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/odoo/odoo/downloads","issues_url":"https://api.github.com/repos/odoo/odoo/issues{/number}","pulls_url":"https://api.github.com/repos/odoo/odoo/pulls{/number}","milestones_url":"https://api.github.com/repos/odoo/odoo/milestones{/number}","notifications_url":"https://api.github.com/repos/odoo/odoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/odoo/odoo/labels{/name}","releases_url":"https://api.github.com/repos/odoo/odoo/releases{/id}","deployments_url":"https://api.github.com/repos/odoo/odoo/deployments","created_at":"2014-05-13T15:38:58Z","updated_at":"2016-06-14T22:29:31Z","pushed_at":"2016-06-14T17:31:29Z","git_url":"git://github.com/odoo/odoo.git","ssh_url":"git@github.com:odoo/odoo.git","clone_url":"https://github.com/odoo/odoo.git","svn_url":"https://github.com/odoo/odoo","homepage":"https://www.odoo.com","size":1657542,"stargazers_count":4444,"watchers_count":4444,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4257,"mirror_url":null,"open_issues_count":3137,"forks":4257,"open_issues":3137,"watchers":4444,"default_branch":"9.0"}},"_links":{"self":{"href":"https://api.github.com/repos/odoo/odoo/pulls/12423"},"html":{"href":"https://github.com/odoo/odoo/pull/12423"},"issue":{"href":"https://api.github.com/repos/odoo/odoo/issues/12423"},"comments":{"href":"https://api.github.com/repos/odoo/odoo/issues/12423/comments"},"review_comments":{"href":"https://api.github.com/repos/odoo/odoo/pulls/12423/comments"},"review_comment":{"href":"https://api.github.com/repos/odoo/odoo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/odoo/odoo/pulls/12423/commits"},"statuses":{"href":"https://api.github.com/repos/odoo/odoo/statuses/8ff99e681ac46981ffde2fa27d67e842909ede7d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"sadamo"}}