{"action":"opened","number":4555,"pull_request":{"url":"https://api.github.com/repos/odoo/odoo/pulls/4555","id":26890432,"html_url":"https://github.com/odoo/odoo/pull/4555","diff_url":"https://github.com/odoo/odoo/pull/4555.diff","patch_url":"https://github.com/odoo/odoo/pull/4555.patch","issue_url":"https://api.github.com/repos/odoo/odoo/issues/4555","number":4555,"state":"open","locked":false,"title":"compute stock valuation with right quantity","user":{"login":"laetitia-gangloff","id":7602419,"avatar_url":"https://avatars.githubusercontent.com/u/7602419?v=3","gravatar_id":"","url":"https://api.github.com/users/laetitia-gangloff","html_url":"https://github.com/laetitia-gangloff","followers_url":"https://api.github.com/users/laetitia-gangloff/followers","following_url":"https://api.github.com/users/laetitia-gangloff/following{/other_user}","gists_url":"https://api.github.com/users/laetitia-gangloff/gists{/gist_id}","starred_url":"https://api.github.com/users/laetitia-gangloff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laetitia-gangloff/subscriptions","organizations_url":"https://api.github.com/users/laetitia-gangloff/orgs","repos_url":"https://api.github.com/users/laetitia-gangloff/repos","events_url":"https://api.github.com/users/laetitia-gangloff/events{/privacy}","received_events_url":"https://api.github.com/users/laetitia-gangloff/received_events","type":"User","site_admin":false},"body":"Impacted versions:\r\n\r\n - 7.0\r\n\r\nSteps to reproduce:\r\n\r\n 1. user should be in the following group:\r\n- Costing Method\r\n- Manage Multiple Units of Measure\r\n- Manage Inventory valuation\r\n 2. configure a product with the following:\r\n- Purchase Unit of Measure : Dozen(s) \r\n- Costing Method : Average Price\r\n- Inventory Valuation : Real Time (automated) (and corresponding account)\r\n 3. create a purchase order with the configured product (purchase 3 Dozen of product (at 216 each dozen))\r\n 4. confirm the purchase and receive the product\r\n\r\nCurrent behavior:\r\n\r\n -  The amount of journal entries is 7776 (3*12*216)\r\n\r\nExpected behavior:\r\n\r\n - The amount of journal entries is 648 (3*216)","created_at":"2015-01-06T14:06:58Z","updated_at":"2015-01-06T14:06:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/odoo/odoo/pulls/4555/commits","review_comments_url":"https://api.github.com/repos/odoo/odoo/pulls/4555/comments","review_comment_url":"https://api.github.com/repos/odoo/odoo/pulls/comments/{number}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/4555/comments","statuses_url":"https://api.github.com/repos/odoo/odoo/statuses/4fac0a91f09b45e532a9ad8a3cbfecc9bc2d2884","head":{"label":"acsone:7.0-stock_valuation_qty-lga","ref":"7.0-stock_valuation_qty-lga","sha":"4fac0a91f09b45e532a9ad8a3cbfecc9bc2d2884","user":{"login":"acsone","id":7601056,"avatar_url":"https://avatars.githubusercontent.com/u/7601056?v=3","gravatar_id":"","url":"https://api.github.com/users/acsone","html_url":"https://github.com/acsone","followers_url":"https://api.github.com/users/acsone/followers","following_url":"https://api.github.com/users/acsone/following{/other_user}","gists_url":"https://api.github.com/users/acsone/gists{/gist_id}","starred_url":"https://api.github.com/users/acsone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acsone/subscriptions","organizations_url":"https://api.github.com/users/acsone/orgs","repos_url":"https://api.github.com/users/acsone/repos","events_url":"https://api.github.com/users/acsone/events{/privacy}","received_events_url":"https://api.github.com/users/acsone/received_events","type":"Organization","site_admin":false},"repo":{"id":20557009,"name":"odoo","full_name":"acsone/odoo","owner":{"login":"acsone","id":7601056,"avatar_url":"https://avatars.githubusercontent.com/u/7601056?v=3","gravatar_id":"","url":"https://api.github.com/users/acsone","html_url":"https://github.com/acsone","followers_url":"https://api.github.com/users/acsone/followers","following_url":"https://api.github.com/users/acsone/following{/other_user}","gists_url":"https://api.github.com/users/acsone/gists{/gist_id}","starred_url":"https://api.github.com/users/acsone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acsone/subscriptions","organizations_url":"https://api.github.com/users/acsone/orgs","repos_url":"https://api.github.com/users/acsone/repos","events_url":"https://api.github.com/users/acsone/events{/privacy}","received_events_url":"https://api.github.com/users/acsone/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/acsone/odoo","description":"Odoo (formerly OpenERP). Open Source Business Apps.","fork":true,"url":"https://api.github.com/repos/acsone/odoo","forks_url":"https://api.github.com/repos/acsone/odoo/forks","keys_url":"https://api.github.com/repos/acsone/odoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acsone/odoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acsone/odoo/teams","hooks_url":"https://api.github.com/repos/acsone/odoo/hooks","issue_events_url":"https://api.github.com/repos/acsone/odoo/issues/events{/number}","events_url":"https://api.github.com/repos/acsone/odoo/events","assignees_url":"https://api.github.com/repos/acsone/odoo/assignees{/user}","branches_url":"https://api.github.com/repos/acsone/odoo/branches{/branch}","tags_url":"https://api.github.com/repos/acsone/odoo/tags","blobs_url":"https://api.github.com/repos/acsone/odoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acsone/odoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acsone/odoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/acsone/odoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acsone/odoo/statuses/{sha}","languages_url":"https://api.github.com/repos/acsone/odoo/languages","stargazers_url":"https://api.github.com/repos/acsone/odoo/stargazers","contributors_url":"https://api.github.com/repos/acsone/odoo/contributors","subscribers_url":"https://api.github.com/repos/acsone/odoo/subscribers","subscription_url":"https://api.github.com/repos/acsone/odoo/subscription","commits_url":"https://api.github.com/repos/acsone/odoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/acsone/odoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/acsone/odoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/acsone/odoo/issues/comments/{number}","contents_url":"https://api.github.com/repos/acsone/odoo/contents/{+path}","compare_url":"https://api.github.com/repos/acsone/odoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acsone/odoo/merges","archive_url":"https://api.github.com/repos/acsone/odoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acsone/odoo/downloads","issues_url":"https://api.github.com/repos/acsone/odoo/issues{/number}","pulls_url":"https://api.github.com/repos/acsone/odoo/pulls{/number}","milestones_url":"https://api.github.com/repos/acsone/odoo/milestones{/number}","notifications_url":"https://api.github.com/repos/acsone/odoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acsone/odoo/labels{/name}","releases_url":"https://api.github.com/repos/acsone/odoo/releases{/id}","created_at":"2014-06-06T08:44:17Z","updated_at":"2014-12-26T14:00:41Z","pushed_at":"2015-01-06T13:42:25Z","git_url":"git://github.com/acsone/odoo.git","ssh_url":"git@github.com:acsone/odoo.git","clone_url":"https://github.com/acsone/odoo.git","svn_url":"https://github.com/acsone/odoo","homepage":"https://www.odoo.com","size":553009,"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":"8.0"}},"base":{"label":"odoo:7.0","ref":"7.0","sha":"96d1520a5e7c402669e812dd9a5f7fc3f35eb284","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}","created_at":"2014-05-13T15:38:58Z","updated_at":"2015-01-06T13:22:27Z","pushed_at":"2015-01-06T13:22:26Z","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":963325,"stargazers_count":1775,"watchers_count":1775,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1431,"mirror_url":null,"open_issues_count":1620,"forks":1431,"open_issues":1620,"watchers":1775,"default_branch":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/odoo/odoo/pulls/4555"},"html":{"href":"https://github.com/odoo/odoo/pull/4555"},"issue":{"href":"https://api.github.com/repos/odoo/odoo/issues/4555"},"comments":{"href":"https://api.github.com/repos/odoo/odoo/issues/4555/comments"},"review_comments":{"href":"https://api.github.com/repos/odoo/odoo/pulls/4555/comments"},"review_comment":{"href":"https://api.github.com/repos/odoo/odoo/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/odoo/odoo/pulls/4555/commits"},"statuses":{"href":"https://api.github.com/repos/odoo/odoo/statuses/4fac0a91f09b45e532a9ad8a3cbfecc9bc2d2884"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":1,"changed_files":1}}