{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/purchase-workflow/pulls/comments/36068263","id":36068263,"diff_hunk":"@@ -0,0 +1,94 @@\n+# -*- coding: utf-8 -*-\n+#\n+#\n+#    Author: Alexandre Fayolle\n+#    Copyright 2013 Camptocamp SA\n+#    Author: Damien Crier\n+#    Copyright 2015 Camptocamp SA\n+#\n+#    This program is free software: you can redistribute it and/or modify\n+#    it under the terms of the GNU Affero General Public License as\n+#    published by the Free Software Foundation, either version 3 of the\n+#    License, or (at your option) any later version.\n+#\n+#    This program is distributed in the hope that it will be useful,\n+#    but WITHOUT ANY WARRANTY; without even the implied warranty of\n+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+#    GNU Affero General Public License for more details.\n+#\n+#    You should have received a copy of the GNU Affero General Public License\n+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+#\n+#\n+\n+from openerp import models, api, fields\n+from openerp.tools.safe_eval import safe_eval\n+\n+\n+class PurchaseOrderLine(models.Model):\n+    _inherit = 'purchase.order.line'\n+    _order = 'order_id desc, sequence, id'\n+\n+    @api.model\n+    def _get_sequence(self):\n+        last_sequence = 0","path":"purchase_order_reorder_lines/purchase.py","position":34,"original_position":34,"commit_id":"0778cb7c8c6068765992e3dda184ec8bb0c11387","original_commit_id":"0778cb7c8c6068765992e3dda184ec8bb0c11387","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":"I point to the same discussion in https://github.com/OCA/stock-logistics-workflow/pull/139#discussion-diff-36064784","created_at":"2015-08-03T09:19:29Z","updated_at":"2015-08-03T09:19:29Z","html_url":"https://github.com/OCA/purchase-workflow/pull/166#discussion_r36068263","pull_request_url":"https://api.github.com/repos/OCA/purchase-workflow/pulls/166","_links":{"self":{"href":"https://api.github.com/repos/OCA/purchase-workflow/pulls/comments/36068263"},"html":{"href":"https://github.com/OCA/purchase-workflow/pull/166#discussion_r36068263"},"pull_request":{"href":"https://api.github.com/repos/OCA/purchase-workflow/pulls/166"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/purchase-workflow/pulls/166","id":41445633,"html_url":"https://github.com/OCA/purchase-workflow/pull/166","diff_url":"https://github.com/OCA/purchase-workflow/pull/166.diff","patch_url":"https://github.com/OCA/purchase-workflow/pull/166.patch","issue_url":"https://api.github.com/repos/OCA/purchase-workflow/issues/166","number":166,"state":"open","locked":false,"title":"[ADD] add module \"purchase_order_reorder_lines\" migrated from sale-wo…","user":{"login":"damdam-s","id":8102312,"avatar_url":"https://avatars.githubusercontent.com/u/8102312?v=3","gravatar_id":"","url":"https://api.github.com/users/damdam-s","html_url":"https://github.com/damdam-s","followers_url":"https://api.github.com/users/damdam-s/followers","following_url":"https://api.github.com/users/damdam-s/following{/other_user}","gists_url":"https://api.github.com/users/damdam-s/gists{/gist_id}","starred_url":"https://api.github.com/users/damdam-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damdam-s/subscriptions","organizations_url":"https://api.github.com/users/damdam-s/orgs","repos_url":"https://api.github.com/users/damdam-s/repos","events_url":"https://api.github.com/users/damdam-s/events{/privacy}","received_events_url":"https://api.github.com/users/damdam-s/received_events","type":"User","site_admin":false},"body":"…rkflow\r\n\r\nDepends on https://github.com/OCA/stock-logistics-workflow/pull/139/","created_at":"2015-08-03T08:42:53Z","updated_at":"2015-08-03T09:19:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4aa9e90e4a5191ea50488d5c400e5b3e3734284c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OCA/purchase-workflow/pulls/166/commits","review_comments_url":"https://api.github.com/repos/OCA/purchase-workflow/pulls/166/comments","review_comment_url":"https://api.github.com/repos/OCA/purchase-workflow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/purchase-workflow/issues/166/comments","statuses_url":"https://api.github.com/repos/OCA/purchase-workflow/statuses/0778cb7c8c6068765992e3dda184ec8bb0c11387","head":{"label":"damdam-s:8.0-purchase_order_reorder_lines","ref":"8.0-purchase_order_reorder_lines","sha":"0778cb7c8c6068765992e3dda184ec8bb0c11387","user":{"login":"damdam-s","id":8102312,"avatar_url":"https://avatars.githubusercontent.com/u/8102312?v=3","gravatar_id":"","url":"https://api.github.com/users/damdam-s","html_url":"https://github.com/damdam-s","followers_url":"https://api.github.com/users/damdam-s/followers","following_url":"https://api.github.com/users/damdam-s/following{/other_user}","gists_url":"https://api.github.com/users/damdam-s/gists{/gist_id}","starred_url":"https://api.github.com/users/damdam-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damdam-s/subscriptions","organizations_url":"https://api.github.com/users/damdam-s/orgs","repos_url":"https://api.github.com/users/damdam-s/repos","events_url":"https://api.github.com/users/damdam-s/events{/privacy}","received_events_url":"https://api.github.com/users/damdam-s/received_events","type":"User","site_admin":false},"repo":{"id":40114111,"name":"purchase-workflow","full_name":"damdam-s/purchase-workflow","owner":{"login":"damdam-s","id":8102312,"avatar_url":"https://avatars.githubusercontent.com/u/8102312?v=3","gravatar_id":"","url":"https://api.github.com/users/damdam-s","html_url":"https://github.com/damdam-s","followers_url":"https://api.github.com/users/damdam-s/followers","following_url":"https://api.github.com/users/damdam-s/following{/other_user}","gists_url":"https://api.github.com/users/damdam-s/gists{/gist_id}","starred_url":"https://api.github.com/users/damdam-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damdam-s/subscriptions","organizations_url":"https://api.github.com/users/damdam-s/orgs","repos_url":"https://api.github.com/users/damdam-s/repos","events_url":"https://api.github.com/users/damdam-s/events{/privacy}","received_events_url":"https://api.github.com/users/damdam-s/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/damdam-s/purchase-workflow","description":"Odoo Purchases, Workflow and Organization","fork":true,"url":"https://api.github.com/repos/damdam-s/purchase-workflow","forks_url":"https://api.github.com/repos/damdam-s/purchase-workflow/forks","keys_url":"https://api.github.com/repos/damdam-s/purchase-workflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/damdam-s/purchase-workflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/damdam-s/purchase-workflow/teams","hooks_url":"https://api.github.com/repos/damdam-s/purchase-workflow/hooks","issue_events_url":"https://api.github.com/repos/damdam-s/purchase-workflow/issues/events{/number}","events_url":"https://api.github.com/repos/damdam-s/purchase-workflow/events","assignees_url":"https://api.github.com/repos/damdam-s/purchase-workflow/assignees{/user}","branches_url":"https://api.github.com/repos/damdam-s/purchase-workflow/branches{/branch}","tags_url":"https://api.github.com/repos/damdam-s/purchase-workflow/tags","blobs_url":"https://api.github.com/repos/damdam-s/purchase-workflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/damdam-s/purchase-workflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/damdam-s/purchase-workflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/damdam-s/purchase-workflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/damdam-s/purchase-workflow/statuses/{sha}","languages_url":"https://api.github.com/repos/damdam-s/purchase-workflow/languages","stargazers_url":"https://api.github.com/repos/damdam-s/purchase-workflow/stargazers","contributors_url":"https://api.github.com/repos/damdam-s/purchase-workflow/contributors","subscribers_url":"https://api.github.com/repos/damdam-s/purchase-workflow/subscribers","subscription_url":"https://api.github.com/repos/damdam-s/purchase-workflow/subscription","commits_url":"https://api.github.com/repos/damdam-s/purchase-workflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/damdam-s/purchase-workflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/damdam-s/purchase-workflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/damdam-s/purchase-workflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/damdam-s/purchase-workflow/contents/{+path}","compare_url":"https://api.github.com/repos/damdam-s/purchase-workflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/damdam-s/purchase-workflow/merges","archive_url":"https://api.github.com/repos/damdam-s/purchase-workflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/damdam-s/purchase-workflow/downloads","issues_url":"https://api.github.com/repos/damdam-s/purchase-workflow/issues{/number}","pulls_url":"https://api.github.com/repos/damdam-s/purchase-workflow/pulls{/number}","milestones_url":"https://api.github.com/repos/damdam-s/purchase-workflow/milestones{/number}","notifications_url":"https://api.github.com/repos/damdam-s/purchase-workflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/damdam-s/purchase-workflow/labels{/name}","releases_url":"https://api.github.com/repos/damdam-s/purchase-workflow/releases{/id}","created_at":"2015-08-03T08:34:53Z","updated_at":"2015-08-03T08:34:54Z","pushed_at":"2015-08-03T08:42:07Z","git_url":"git://github.com/damdam-s/purchase-workflow.git","ssh_url":"git@github.com:damdam-s/purchase-workflow.git","clone_url":"https://github.com/damdam-s/purchase-workflow.git","svn_url":"https://github.com/damdam-s/purchase-workflow","homepage":"","size":4634,"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":"OCA:8.0","ref":"8.0","sha":"0bfaca42da366e31f38b3371e79a6a315ae17ed3","user":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"repo":{"id":20882845,"name":"purchase-workflow","full_name":"OCA/purchase-workflow","owner":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OCA/purchase-workflow","description":"Odoo Purchases, Workflow and Organization","fork":false,"url":"https://api.github.com/repos/OCA/purchase-workflow","forks_url":"https://api.github.com/repos/OCA/purchase-workflow/forks","keys_url":"https://api.github.com/repos/OCA/purchase-workflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/purchase-workflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/purchase-workflow/teams","hooks_url":"https://api.github.com/repos/OCA/purchase-workflow/hooks","issue_events_url":"https://api.github.com/repos/OCA/purchase-workflow/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/purchase-workflow/events","assignees_url":"https://api.github.com/repos/OCA/purchase-workflow/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/purchase-workflow/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/purchase-workflow/tags","blobs_url":"https://api.github.com/repos/OCA/purchase-workflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/purchase-workflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/purchase-workflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/purchase-workflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/purchase-workflow/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/purchase-workflow/languages","stargazers_url":"https://api.github.com/repos/OCA/purchase-workflow/stargazers","contributors_url":"https://api.github.com/repos/OCA/purchase-workflow/contributors","subscribers_url":"https://api.github.com/repos/OCA/purchase-workflow/subscribers","subscription_url":"https://api.github.com/repos/OCA/purchase-workflow/subscription","commits_url":"https://api.github.com/repos/OCA/purchase-workflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/purchase-workflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/purchase-workflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/purchase-workflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/purchase-workflow/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/purchase-workflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/purchase-workflow/merges","archive_url":"https://api.github.com/repos/OCA/purchase-workflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/purchase-workflow/downloads","issues_url":"https://api.github.com/repos/OCA/purchase-workflow/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/purchase-workflow/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/purchase-workflow/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/purchase-workflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/purchase-workflow/labels{/name}","releases_url":"https://api.github.com/repos/OCA/purchase-workflow/releases{/id}","created_at":"2014-06-16T11:44:14Z","updated_at":"2015-07-24T14:16:29Z","pushed_at":"2015-08-03T08:42:53Z","git_url":"git://github.com/OCA/purchase-workflow.git","ssh_url":"git@github.com:OCA/purchase-workflow.git","clone_url":"https://github.com/OCA/purchase-workflow.git","svn_url":"https://github.com/OCA/purchase-workflow","homepage":"","size":4634,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":62,"mirror_url":null,"open_issues_count":35,"forks":62,"open_issues":35,"watchers":10,"default_branch":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/purchase-workflow/pulls/166"},"html":{"href":"https://github.com/OCA/purchase-workflow/pull/166"},"issue":{"href":"https://api.github.com/repos/OCA/purchase-workflow/issues/166"},"comments":{"href":"https://api.github.com/repos/OCA/purchase-workflow/issues/166/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/purchase-workflow/pulls/166/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/purchase-workflow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/purchase-workflow/pulls/166/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/purchase-workflow/statuses/0778cb7c8c6068765992e3dda184ec8bb0c11387"}}}}