{"action":"created","comment":{"url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/comments/76032479","id":76032479,"diff_hunk":"@@ -3,6 +3,26 @@\n # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html\n \n from openerp import models, fields, api, exceptions, _\n+import openerp.addons.decimal_precision as dp\n+\n+\n+class StockInventoryLine(models.Model):\n+    _inherit = 'stock.inventory.line'\n+\n+    standard_price = fields.Float('Cost Price',\n+                                  digits=dp.get_precision('Product Price'))\n+\n+    @api.model\n+    def _resolve_inventory_line(self, inventory_line):\n+        product = self.env['product.product'].browse(\n+            inventory_line.product_id.id)\n+        product.standard_price = inventory_line.standard_price\n+        move = super(StockInventoryLine,","path":"stock_inventory_import/models/stock_inventory.py","position":18,"original_position":18,"commit_id":"379c95b7662e3bbd8a42d582548461a12a0aaa70","original_commit_id":"379c95b7662e3bbd8a42d582548461a12a0aaa70","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":"hazlo al reves please, si obtienes un id pon move_id y si obtienes un browse_record pon move","created_at":"2016-08-24T10:29:27Z","updated_at":"2016-08-24T10:29:27Z","html_url":"https://github.com/odoomrp/odoomrp-wip/pull/1278#discussion_r76032479","pull_request_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/1278","_links":{"self":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/comments/76032479"},"html":{"href":"https://github.com/odoomrp/odoomrp-wip/pull/1278#discussion_r76032479"},"pull_request":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/1278"}}},"pull_request":{"url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/1278","id":80430440,"html_url":"https://github.com/odoomrp/odoomrp-wip/pull/1278","diff_url":"https://github.com/odoomrp/odoomrp-wip/pull/1278.diff","patch_url":"https://github.com/odoomrp/odoomrp-wip/pull/1278.patch","issue_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/1278","number":1278,"state":"open","locked":false,"title":"[MOD] stock_inventory_import: include standard_price","user":{"login":"esthermm","id":12657894,"avatar_url":"https://avatars.githubusercontent.com/u/12657894?v=3","gravatar_id":"","url":"https://api.github.com/users/esthermm","html_url":"https://github.com/esthermm","followers_url":"https://api.github.com/users/esthermm/followers","following_url":"https://api.github.com/users/esthermm/following{/other_user}","gists_url":"https://api.github.com/users/esthermm/gists{/gist_id}","starred_url":"https://api.github.com/users/esthermm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esthermm/subscriptions","organizations_url":"https://api.github.com/users/esthermm/orgs","repos_url":"https://api.github.com/users/esthermm/repos","events_url":"https://api.github.com/users/esthermm/events{/privacy}","received_events_url":"https://api.github.com/users/esthermm/received_events","type":"User","site_admin":false},"body":"Enfoque técnico:\r\n.- Añadir campo \"coste\" del producto en la línea de inventario. Permitir modificar.\r\n.- Modificar / Extender la función \"import inventory\" para que incluya este nuevo campo.\r\n.- Al validar inventario, en vez de coger el coste de la ficha de producto, hacer que los stock-moves creados, cojan el valor de este nuevo campo.\r\n\r\n** En un principio se había pensado crear otro módulo, pero se puede \"reutilizar\" este.","created_at":"2016-08-08T10:47:43Z","updated_at":"2016-08-24T10:29:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c0e4736f3648a7dfc3982b28ac879ca2335727a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/1278/commits","review_comments_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/1278/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/1278/comments","statuses_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/statuses/379c95b7662e3bbd8a42d582548461a12a0aaa70","head":{"label":"esthermm:8.0-stock_inventory_import","ref":"8.0-stock_inventory_import","sha":"379c95b7662e3bbd8a42d582548461a12a0aaa70","user":{"login":"esthermm","id":12657894,"avatar_url":"https://avatars.githubusercontent.com/u/12657894?v=3","gravatar_id":"","url":"https://api.github.com/users/esthermm","html_url":"https://github.com/esthermm","followers_url":"https://api.github.com/users/esthermm/followers","following_url":"https://api.github.com/users/esthermm/following{/other_user}","gists_url":"https://api.github.com/users/esthermm/gists{/gist_id}","starred_url":"https://api.github.com/users/esthermm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esthermm/subscriptions","organizations_url":"https://api.github.com/users/esthermm/orgs","repos_url":"https://api.github.com/users/esthermm/repos","events_url":"https://api.github.com/users/esthermm/events{/privacy}","received_events_url":"https://api.github.com/users/esthermm/received_events","type":"User","site_admin":false},"repo":{"id":38825722,"name":"odoomrp-wip","full_name":"esthermm/odoomrp-wip","owner":{"login":"esthermm","id":12657894,"avatar_url":"https://avatars.githubusercontent.com/u/12657894?v=3","gravatar_id":"","url":"https://api.github.com/users/esthermm","html_url":"https://github.com/esthermm","followers_url":"https://api.github.com/users/esthermm/followers","following_url":"https://api.github.com/users/esthermm/following{/other_user}","gists_url":"https://api.github.com/users/esthermm/gists{/gist_id}","starred_url":"https://api.github.com/users/esthermm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esthermm/subscriptions","organizations_url":"https://api.github.com/users/esthermm/orgs","repos_url":"https://api.github.com/users/esthermm/repos","events_url":"https://api.github.com/users/esthermm/events{/privacy}","received_events_url":"https://api.github.com/users/esthermm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/esthermm/odoomrp-wip","description":"WIP of OdooMRP","fork":true,"url":"https://api.github.com/repos/esthermm/odoomrp-wip","forks_url":"https://api.github.com/repos/esthermm/odoomrp-wip/forks","keys_url":"https://api.github.com/repos/esthermm/odoomrp-wip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esthermm/odoomrp-wip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esthermm/odoomrp-wip/teams","hooks_url":"https://api.github.com/repos/esthermm/odoomrp-wip/hooks","issue_events_url":"https://api.github.com/repos/esthermm/odoomrp-wip/issues/events{/number}","events_url":"https://api.github.com/repos/esthermm/odoomrp-wip/events","assignees_url":"https://api.github.com/repos/esthermm/odoomrp-wip/assignees{/user}","branches_url":"https://api.github.com/repos/esthermm/odoomrp-wip/branches{/branch}","tags_url":"https://api.github.com/repos/esthermm/odoomrp-wip/tags","blobs_url":"https://api.github.com/repos/esthermm/odoomrp-wip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esthermm/odoomrp-wip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esthermm/odoomrp-wip/git/refs{/sha}","trees_url":"https://api.github.com/repos/esthermm/odoomrp-wip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esthermm/odoomrp-wip/statuses/{sha}","languages_url":"https://api.github.com/repos/esthermm/odoomrp-wip/languages","stargazers_url":"https://api.github.com/repos/esthermm/odoomrp-wip/stargazers","contributors_url":"https://api.github.com/repos/esthermm/odoomrp-wip/contributors","subscribers_url":"https://api.github.com/repos/esthermm/odoomrp-wip/subscribers","subscription_url":"https://api.github.com/repos/esthermm/odoomrp-wip/subscription","commits_url":"https://api.github.com/repos/esthermm/odoomrp-wip/commits{/sha}","git_commits_url":"https://api.github.com/repos/esthermm/odoomrp-wip/git/commits{/sha}","comments_url":"https://api.github.com/repos/esthermm/odoomrp-wip/comments{/number}","issue_comment_url":"https://api.github.com/repos/esthermm/odoomrp-wip/issues/comments{/number}","contents_url":"https://api.github.com/repos/esthermm/odoomrp-wip/contents/{+path}","compare_url":"https://api.github.com/repos/esthermm/odoomrp-wip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esthermm/odoomrp-wip/merges","archive_url":"https://api.github.com/repos/esthermm/odoomrp-wip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esthermm/odoomrp-wip/downloads","issues_url":"https://api.github.com/repos/esthermm/odoomrp-wip/issues{/number}","pulls_url":"https://api.github.com/repos/esthermm/odoomrp-wip/pulls{/number}","milestones_url":"https://api.github.com/repos/esthermm/odoomrp-wip/milestones{/number}","notifications_url":"https://api.github.com/repos/esthermm/odoomrp-wip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esthermm/odoomrp-wip/labels{/name}","releases_url":"https://api.github.com/repos/esthermm/odoomrp-wip/releases{/id}","deployments_url":"https://api.github.com/repos/esthermm/odoomrp-wip/deployments","created_at":"2015-07-09T14:36:32Z","updated_at":"2016-06-01T09:32:17Z","pushed_at":"2016-08-12T09:17:50Z","git_url":"git://github.com/esthermm/odoomrp-wip.git","ssh_url":"git@github.com:esthermm/odoomrp-wip.git","clone_url":"https://github.com/esthermm/odoomrp-wip.git","svn_url":"https://github.com/esthermm/odoomrp-wip","homepage":"http://www.odoomrp.com","size":5209,"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":"989fa01690cbce5383ef6b9b92ff98e6d123562d","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}","deployments_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/deployments","created_at":"2014-07-22T23:29:59Z","updated_at":"2016-08-23T02:56:20Z","pushed_at":"2016-08-24T09:07:14Z","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":6889,"stargazers_count":81,"watchers_count":81,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":188,"mirror_url":null,"open_issues_count":78,"forks":188,"open_issues":78,"watchers":81,"default_branch":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/1278"},"html":{"href":"https://github.com/odoomrp/odoomrp-wip/pull/1278"},"issue":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/1278"},"comments":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/1278/comments"},"review_comments":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/1278/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/1278/commits"},"statuses":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/statuses/379c95b7662e3bbd8a42d582548461a12a0aaa70"}}}}
{"actor":{"display_login":"oihane"}}