{"action":"created","comment":{"url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/comments/22857487","id":22857487,"diff_hunk":"@@ -72,6 +72,14 @@ def product_id_change(self, cr, uid, ids, product_id, product_qty=0,\n         return result\n \n     @api.multi\n+    def bom_id_change(self, bom_id):\n+        res = super(MrpProduction, self).bom_id_change(bom_id)\n+        if bom_id:\n+            bom = self.env['mrp.bom'].browse(bom_id)\n+            res['value'].update({'product_id': bom.product_id.id})","path":"mrp_product_variants/models/mrp_production.py","position":8,"original_position":8,"commit_id":"5af2074340fd8bc4322bc4a51c7f2533bcce98bb","original_commit_id":"5af2074340fd8bc4322bc4a51c7f2533bcce98bb","user":{"login":"pedrobaeza","id":7165771,"avatar_url":"https://avatars.githubusercontent.com/u/7165771?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrobaeza","html_url":"https://github.com/pedrobaeza","followers_url":"https://api.github.com/users/pedrobaeza/followers","following_url":"https://api.github.com/users/pedrobaeza/following{/other_user}","gists_url":"https://api.github.com/users/pedrobaeza/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrobaeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrobaeza/subscriptions","organizations_url":"https://api.github.com/users/pedrobaeza/orgs","repos_url":"https://api.github.com/users/pedrobaeza/repos","events_url":"https://api.github.com/users/pedrobaeza/events{/privacy}","received_events_url":"https://api.github.com/users/pedrobaeza/received_events","type":"User","site_admin":false},"body":"Por qué no haces directamente res['value']['product_id']?","created_at":"2015-01-13T11:56:27Z","updated_at":"2015-01-13T11:56:27Z","html_url":"https://github.com/odoomrp/odoomrp-wip/pull/559#discussion_r22857487","pull_request_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/559","_links":{"self":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/comments/22857487"},"html":{"href":"https://github.com/odoomrp/odoomrp-wip/pull/559#discussion_r22857487"},"pull_request":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/559"}}},"pull_request":{"url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/559","id":27265724,"html_url":"https://github.com/odoomrp/odoomrp-wip/pull/559","diff_url":"https://github.com/odoomrp/odoomrp-wip/pull/559.diff","patch_url":"https://github.com/odoomrp/odoomrp-wip/pull/559.patch","issue_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/559","number":559,"state":"open","locked":false,"title":"[MOD] Issue #531","user":{"login":"oihane","id":2323616,"avatar_url":"https://avatars.githubusercontent.com/u/2323616?v=3","gravatar_id":"","url":"https://api.github.com/users/oihane","html_url":"https://github.com/oihane","followers_url":"https://api.github.com/users/oihane/followers","following_url":"https://api.github.com/users/oihane/following{/other_user}","gists_url":"https://api.github.com/users/oihane/gists{/gist_id}","starred_url":"https://api.github.com/users/oihane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oihane/subscriptions","organizations_url":"https://api.github.com/users/oihane/orgs","repos_url":"https://api.github.com/users/oihane/repos","events_url":"https://api.github.com/users/oihane/events{/privacy}","received_events_url":"https://api.github.com/users/oihane/received_events","type":"User","site_admin":false},"body":"Issue #531","created_at":"2015-01-13T11:53:06Z","updated_at":"2015-01-13T11:56:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e772af68a54f304c73a4b00f3b526db0b5f554c4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/559/commits","review_comments_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/559/comments","review_comment_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/comments/{number}","comments_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/559/comments","statuses_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/statuses/5af2074340fd8bc4322bc4a51c7f2533bcce98bb","head":{"label":"oihane:8.0-bom_onchange","ref":"8.0-bom_onchange","sha":"5af2074340fd8bc4322bc4a51c7f2533bcce98bb","user":{"login":"oihane","id":2323616,"avatar_url":"https://avatars.githubusercontent.com/u/2323616?v=3","gravatar_id":"","url":"https://api.github.com/users/oihane","html_url":"https://github.com/oihane","followers_url":"https://api.github.com/users/oihane/followers","following_url":"https://api.github.com/users/oihane/following{/other_user}","gists_url":"https://api.github.com/users/oihane/gists{/gist_id}","starred_url":"https://api.github.com/users/oihane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oihane/subscriptions","organizations_url":"https://api.github.com/users/oihane/orgs","repos_url":"https://api.github.com/users/oihane/repos","events_url":"https://api.github.com/users/oihane/events{/privacy}","received_events_url":"https://api.github.com/users/oihane/received_events","type":"User","site_admin":false},"repo":{"id":24581200,"name":"odoomrp-wip","full_name":"oihane/odoomrp-wip","owner":{"login":"oihane","id":2323616,"avatar_url":"https://avatars.githubusercontent.com/u/2323616?v=3","gravatar_id":"","url":"https://api.github.com/users/oihane","html_url":"https://github.com/oihane","followers_url":"https://api.github.com/users/oihane/followers","following_url":"https://api.github.com/users/oihane/following{/other_user}","gists_url":"https://api.github.com/users/oihane/gists{/gist_id}","starred_url":"https://api.github.com/users/oihane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oihane/subscriptions","organizations_url":"https://api.github.com/users/oihane/orgs","repos_url":"https://api.github.com/users/oihane/repos","events_url":"https://api.github.com/users/oihane/events{/privacy}","received_events_url":"https://api.github.com/users/oihane/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oihane/odoomrp-wip","description":"WIP of OdooMRP","fork":true,"url":"https://api.github.com/repos/oihane/odoomrp-wip","forks_url":"https://api.github.com/repos/oihane/odoomrp-wip/forks","keys_url":"https://api.github.com/repos/oihane/odoomrp-wip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oihane/odoomrp-wip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oihane/odoomrp-wip/teams","hooks_url":"https://api.github.com/repos/oihane/odoomrp-wip/hooks","issue_events_url":"https://api.github.com/repos/oihane/odoomrp-wip/issues/events{/number}","events_url":"https://api.github.com/repos/oihane/odoomrp-wip/events","assignees_url":"https://api.github.com/repos/oihane/odoomrp-wip/assignees{/user}","branches_url":"https://api.github.com/repos/oihane/odoomrp-wip/branches{/branch}","tags_url":"https://api.github.com/repos/oihane/odoomrp-wip/tags","blobs_url":"https://api.github.com/repos/oihane/odoomrp-wip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oihane/odoomrp-wip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oihane/odoomrp-wip/git/refs{/sha}","trees_url":"https://api.github.com/repos/oihane/odoomrp-wip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oihane/odoomrp-wip/statuses/{sha}","languages_url":"https://api.github.com/repos/oihane/odoomrp-wip/languages","stargazers_url":"https://api.github.com/repos/oihane/odoomrp-wip/stargazers","contributors_url":"https://api.github.com/repos/oihane/odoomrp-wip/contributors","subscribers_url":"https://api.github.com/repos/oihane/odoomrp-wip/subscribers","subscription_url":"https://api.github.com/repos/oihane/odoomrp-wip/subscription","commits_url":"https://api.github.com/repos/oihane/odoomrp-wip/commits{/sha}","git_commits_url":"https://api.github.com/repos/oihane/odoomrp-wip/git/commits{/sha}","comments_url":"https://api.github.com/repos/oihane/odoomrp-wip/comments{/number}","issue_comment_url":"https://api.github.com/repos/oihane/odoomrp-wip/issues/comments/{number}","contents_url":"https://api.github.com/repos/oihane/odoomrp-wip/contents/{+path}","compare_url":"https://api.github.com/repos/oihane/odoomrp-wip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oihane/odoomrp-wip/merges","archive_url":"https://api.github.com/repos/oihane/odoomrp-wip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oihane/odoomrp-wip/downloads","issues_url":"https://api.github.com/repos/oihane/odoomrp-wip/issues{/number}","pulls_url":"https://api.github.com/repos/oihane/odoomrp-wip/pulls{/number}","milestones_url":"https://api.github.com/repos/oihane/odoomrp-wip/milestones{/number}","notifications_url":"https://api.github.com/repos/oihane/odoomrp-wip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oihane/odoomrp-wip/labels{/name}","releases_url":"https://api.github.com/repos/oihane/odoomrp-wip/releases{/id}","created_at":"2014-09-29T05:32:26Z","updated_at":"2015-01-12T15:40:16Z","pushed_at":"2015-01-13T11:52:50Z","git_url":"git://github.com/oihane/odoomrp-wip.git","ssh_url":"git@github.com:oihane/odoomrp-wip.git","clone_url":"https://github.com/oihane/odoomrp-wip.git","svn_url":"https://github.com/oihane/odoomrp-wip","homepage":"http://www.odoomrp.com","size":3533,"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":"odoomrp:8.0","ref":"8.0","sha":"3b6915f233d1d140368a7853e854c1c6394d1f7a","user":{"login":"odoomrp","id":7858947,"avatar_url":"https://avatars.githubusercontent.com/u/7858947?v=3","gravatar_id":"","url":"https://api.github.com/users/odoomrp","html_url":"https://github.com/odoomrp","followers_url":"https://api.github.com/users/odoomrp/followers","following_url":"https://api.github.com/users/odoomrp/following{/other_user}","gists_url":"https://api.github.com/users/odoomrp/gists{/gist_id}","starred_url":"https://api.github.com/users/odoomrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odoomrp/subscriptions","organizations_url":"https://api.github.com/users/odoomrp/orgs","repos_url":"https://api.github.com/users/odoomrp/repos","events_url":"https://api.github.com/users/odoomrp/events{/privacy}","received_events_url":"https://api.github.com/users/odoomrp/received_events","type":"Organization","site_admin":false},"repo":{"id":22124768,"name":"odoomrp-wip","full_name":"odoomrp/odoomrp-wip","owner":{"login":"odoomrp","id":7858947,"avatar_url":"https://avatars.githubusercontent.com/u/7858947?v=3","gravatar_id":"","url":"https://api.github.com/users/odoomrp","html_url":"https://github.com/odoomrp","followers_url":"https://api.github.com/users/odoomrp/followers","following_url":"https://api.github.com/users/odoomrp/following{/other_user}","gists_url":"https://api.github.com/users/odoomrp/gists{/gist_id}","starred_url":"https://api.github.com/users/odoomrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odoomrp/subscriptions","organizations_url":"https://api.github.com/users/odoomrp/orgs","repos_url":"https://api.github.com/users/odoomrp/repos","events_url":"https://api.github.com/users/odoomrp/events{/privacy}","received_events_url":"https://api.github.com/users/odoomrp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/odoomrp/odoomrp-wip","description":"WIP of OdooMRP","fork":false,"url":"https://api.github.com/repos/odoomrp/odoomrp-wip","forks_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/forks","keys_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/teams","hooks_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/hooks","issue_events_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/events{/number}","events_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/events","assignees_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/assignees{/user}","branches_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/branches{/branch}","tags_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/tags","blobs_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/git/refs{/sha}","trees_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/statuses/{sha}","languages_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/languages","stargazers_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/stargazers","contributors_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/contributors","subscribers_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/subscribers","subscription_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/subscription","commits_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/commits{/sha}","git_commits_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/git/commits{/sha}","comments_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/comments{/number}","issue_comment_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/comments/{number}","contents_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/contents/{+path}","compare_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/merges","archive_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/downloads","issues_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues{/number}","pulls_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls{/number}","milestones_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/milestones{/number}","notifications_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/labels{/name}","releases_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/releases{/id}","created_at":"2014-07-22T23:29:59Z","updated_at":"2015-01-13T11:27:50Z","pushed_at":"2015-01-13T11:27:49Z","git_url":"git://github.com/odoomrp/odoomrp-wip.git","ssh_url":"git@github.com:odoomrp/odoomrp-wip.git","clone_url":"https://github.com/odoomrp/odoomrp-wip.git","svn_url":"https://github.com/odoomrp/odoomrp-wip","homepage":"http://www.odoomrp.com","size":5907,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":55,"forks":28,"open_issues":55,"watchers":20,"default_branch":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/559"},"html":{"href":"https://github.com/odoomrp/odoomrp-wip/pull/559"},"issue":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/559"},"comments":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/559/comments"},"review_comments":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/559/comments"},"review_comment":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/559/commits"},"statuses":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/statuses/5af2074340fd8bc4322bc4a51c7f2533bcce98bb"}}}}