GitHub PullRequestReviewCommentEvent at 2014-10-21 12:17:00
Repository: odoomrp-wip
Actor: pedrobaeza
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/comments/19143736","id":19143736,"diff_hunk":"@@ -0,0 +1,73 @@\n+#\n+from openerp import models, fields, api, exceptions, _\n+\n+\n+class StockInventory(models.Model):\n+    _inherit = \"stock.inventory\"\n+\n+    def _get_available_filters(self):\n+        cr = self._cr\n+        uid = self._uid\n+        context = self._context\n+        res = super(StockInventory, self)._get_available_filters(cr, uid,\n+                                                                 context)\n+        res.append(('file', _('By File')))\n+        return res\n+\n+    imported = fields.Boolean('Imported')\n+    import_lines = fields.One2many('stock.inventory.import.line',\n+                                   'inventory_id', string='Imported Lines')\n+    filter = fields.Selection(_get_available_filters, 'Selection Filter',\n+                              required=True)\n+\n+    @api.one\n+    def process_import_lines(self):\n+        \"\"\"","path":"import_stock_inventory/models/stock_inventory.py","position":25,"original_position":25,"commit_id":"dc092f7988e3b7b65792f1409ceba17f238c1c97","original_commit_id":"dc092f7988e3b7b65792f1409ceba17f238c1c97","user":{"login":"pedrobaeza","id":7165771,"avatar_url":"https://avatars.githubusercontent.com/u/7165771?v=2","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":"Estos docstring se ponen en una sola línea","created_at":"2014-10-21T12:17:00Z","updated_at":"2014-10-21T12:17:00Z","html_url":"https://github.com/odoomrp/odoomrp-wip/pull/192#discussion_r19143736","pull_request_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/192","_links":{"self":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/comments/19143736"},"html":{"href":"https://github.com/odoomrp/odoomrp-wip/pull/192#discussion_r19143736"},"pull_request":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/192"}}},"pull_request":{"url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/192","id":23080861,"html_url":"https://github.com/odoomrp/odoomrp-wip/pull/192","diff_url":"https://github.com/odoomrp/odoomrp-wip/pull/192.diff","patch_url":"https://github.com/odoomrp/odoomrp-wip/pull/192.patch","issue_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/192","number":192,"state":"open","locked":false,"title":"[ADD] import_stock_inventory","user":{"login":"Daniel-CA","id":7643575,"avatar_url":"https://avatars.githubusercontent.com/u/7643575?v=2","gravatar_id":"","url":"https://api.github.com/users/Daniel-CA","html_url":"https://github.com/Daniel-CA","followers_url":"https://api.github.com/users/Daniel-CA/followers","following_url":"https://api.github.com/users/Daniel-CA/following{/other_user}","gists_url":"https://api.github.com/users/Daniel-CA/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel-CA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel-CA/subscriptions","organizations_url":"https://api.github.com/users/Daniel-CA/orgs","repos_url":"https://api.github.com/users/Daniel-CA/repos","events_url":"https://api.github.com/users/Daniel-CA/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel-CA/received_events","type":"User","site_admin":false},"body":"Según especificaciones #27","created_at":"2014-10-21T12:13:14Z","updated_at":"2014-10-21T12:17:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ee17415af42432195684a7bac15f9ec9f3cc357","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/192/commits","review_comments_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/192/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/192/comments","statuses_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/statuses/dc092f7988e3b7b65792f1409ceba17f238c1c97","head":{"label":"Daniel-CA:import_stock_inventory","ref":"import_stock_inventory","sha":"dc092f7988e3b7b65792f1409ceba17f238c1c97","user":{"login":"Daniel-CA","id":7643575,"avatar_url":"https://avatars.githubusercontent.com/u/7643575?v=2","gravatar_id":"","url":"https://api.github.com/users/Daniel-CA","html_url":"https://github.com/Daniel-CA","followers_url":"https://api.github.com/users/Daniel-CA/followers","following_url":"https://api.github.com/users/Daniel-CA/following{/other_user}","gists_url":"https://api.github.com/users/Daniel-CA/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel-CA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel-CA/subscriptions","organizations_url":"https://api.github.com/users/Daniel-CA/orgs","repos_url":"https://api.github.com/users/Daniel-CA/repos","events_url":"https://api.github.com/users/Daniel-CA/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel-CA/received_events","type":"User","site_admin":false},"repo":{"id":24584015,"name":"odoomrp-wip-public","full_name":"Daniel-CA/odoomrp-wip-public","owner":{"login":"Daniel-CA","id":7643575,"avatar_url":"https://avatars.githubusercontent.com/u/7643575?v=2","gravatar_id":"","url":"https://api.github.com/users/Daniel-CA","html_url":"https://github.com/Daniel-CA","followers_url":"https://api.github.com/users/Daniel-CA/followers","following_url":"https://api.github.com/users/Daniel-CA/following{/other_user}","gists_url":"https://api.github.com/users/Daniel-CA/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel-CA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel-CA/subscriptions","organizations_url":"https://api.github.com/users/Daniel-CA/orgs","repos_url":"https://api.github.com/users/Daniel-CA/repos","events_url":"https://api.github.com/users/Daniel-CA/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel-CA/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Daniel-CA/odoomrp-wip-public","description":"WIP of OdooMRP","fork":true,"url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public","forks_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/forks","keys_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/teams","hooks_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/hooks","issue_events_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/issues/events{/number}","events_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/events","assignees_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/assignees{/user}","branches_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/branches{/branch}","tags_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/tags","blobs_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/git/refs{/sha}","trees_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/statuses/{sha}","languages_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/languages","stargazers_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/stargazers","contributors_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/contributors","subscribers_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/subscribers","subscription_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/subscription","commits_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/commits{/sha}","git_commits_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/git/commits{/sha}","comments_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/comments{/number}","issue_comment_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/issues/comments/{number}","contents_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/contents/{+path}","compare_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/merges","archive_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/downloads","issues_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/issues{/number}","pulls_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/pulls{/number}","milestones_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/milestones{/number}","notifications_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/labels{/name}","releases_url":"https://api.github.com/repos/Daniel-CA/odoomrp-wip-public/releases{/id}","created_at":"2014-09-29T07:26:12Z","updated_at":"2014-10-15T08:02:15Z","pushed_at":"2014-10-21T12:11:24Z","git_url":"git://github.com/Daniel-CA/odoomrp-wip-public.git","ssh_url":"git@github.com:Daniel-CA/odoomrp-wip-public.git","clone_url":"https://github.com/Daniel-CA/odoomrp-wip-public.git","svn_url":"https://github.com/Daniel-CA/odoomrp-wip-public","homepage":"http://www.odoomrp.com","size":1025,"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":"511c4e12a4464486a249d03e441896a054b8e093","user":{"login":"odoomrp","id":7858947,"avatar_url":"https://avatars.githubusercontent.com/u/7858947?v=2","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=2","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":"2014-10-08T16:11:04Z","pushed_at":"2014-10-21T08:35:55Z","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":3499,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":31,"forks":11,"open_issues":31,"watchers":4,"default_branch":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/192"},"html":{"href":"https://github.com/odoomrp/odoomrp-wip/pull/192"},"issue":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/192"},"comments":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/192/comments"},"review_comments":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/192/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/192/commits"},"statuses":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/statuses/dc092f7988e3b7b65792f1409ceba17f238c1c97"}}}}