{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/sale-workflow/pulls/comments/38201172","id":38201172,"diff_hunk":"@@ -0,0 +1,32 @@\n+# -*- coding: utf-8 -*-\n+#\n+#\n+#    Author: Alexandre Fayolle\n+#    Copyright 2013 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 fields\n+from openerp.models import Model\n+\n+\n+class StockMove(Model):\n+    _inherit = 'stock.move'\n+    _order = 'date_expected desc, sequence, id'\n+\n+    sequence = fields.Integer(\n+        default=10,","path":"stock_picking_reorder_lines/models/stock_move.py","position":31,"original_position":31,"commit_id":"ae9ca4ef9ceae6b113d2c64825b51f5b4622cae4","original_commit_id":"ae9ca4ef9ceae6b113d2c64825b51f5b4622cae4","user":{"login":"yvaucher","id":4158438,"avatar_url":"https://avatars.githubusercontent.com/u/4158438?v=3","gravatar_id":"","url":"https://api.github.com/users/yvaucher","html_url":"https://github.com/yvaucher","followers_url":"https://api.github.com/users/yvaucher/followers","following_url":"https://api.github.com/users/yvaucher/following{/other_user}","gists_url":"https://api.github.com/users/yvaucher/gists{/gist_id}","starred_url":"https://api.github.com/users/yvaucher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yvaucher/subscriptions","organizations_url":"https://api.github.com/users/yvaucher/orgs","repos_url":"https://api.github.com/users/yvaucher/repos","events_url":"https://api.github.com/users/yvaucher/events{/privacy}","received_events_url":"https://api.github.com/users/yvaucher/received_events","type":"User","site_admin":false},"body":"I don't see any example of sequence with a default as a function in other modules. After sequence it is order by id so there no issue having multiple sequence to 10. Using interface to change order will write all sequences fields.","created_at":"2015-08-28T13:52:07Z","updated_at":"2015-08-28T13:52:07Z","html_url":"https://github.com/OCA/sale-workflow/pull/190#discussion_r38201172","pull_request_url":"https://api.github.com/repos/OCA/sale-workflow/pulls/190","_links":{"self":{"href":"https://api.github.com/repos/OCA/sale-workflow/pulls/comments/38201172"},"html":{"href":"https://github.com/OCA/sale-workflow/pull/190#discussion_r38201172"},"pull_request":{"href":"https://api.github.com/repos/OCA/sale-workflow/pulls/190"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/sale-workflow/pulls/190","id":40573620,"html_url":"https://github.com/OCA/sale-workflow/pull/190","diff_url":"https://github.com/OCA/sale-workflow/pull/190.diff","patch_url":"https://github.com/OCA/sale-workflow/pull/190.patch","issue_url":"https://api.github.com/repos/OCA/sale-workflow/issues/190","number":190,"state":"open","locked":false,"title":"[port][8.0]  stock_picking_reorder_lines","user":{"login":"legalsylvain","id":3407482,"avatar_url":"https://avatars.githubusercontent.com/u/3407482?v=3","gravatar_id":"","url":"https://api.github.com/users/legalsylvain","html_url":"https://github.com/legalsylvain","followers_url":"https://api.github.com/users/legalsylvain/followers","following_url":"https://api.github.com/users/legalsylvain/following{/other_user}","gists_url":"https://api.github.com/users/legalsylvain/gists{/gist_id}","starred_url":"https://api.github.com/users/legalsylvain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legalsylvain/subscriptions","organizations_url":"https://api.github.com/users/legalsylvain/orgs","repos_url":"https://api.github.com/users/legalsylvain/repos","events_url":"https://api.github.com/users/legalsylvain/events{/privacy}","received_events_url":"https://api.github.com/users/legalsylvain/received_events","type":"User","site_admin":false},"body":"port stock_picking_reorder_lines for v8.\r\n(no functional changes)\r\nthanks for your review;","created_at":"2015-07-22T14:53:37Z","updated_at":"2015-08-28T13:52:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"779068a470edecf17ec5d40689e97d24ff3721f0","assignee":null,"milestone":{"url":"https://api.github.com/repos/OCA/sale-workflow/milestones/3","html_url":"https://github.com/OCA/sale-workflow/milestones/8.0","labels_url":"https://api.github.com/repos/OCA/sale-workflow/milestones/3/labels","id":999334,"number":3,"title":"8.0","description":"","creator":{"login":"max3903","id":939952,"avatar_url":"https://avatars.githubusercontent.com/u/939952?v=3","gravatar_id":"","url":"https://api.github.com/users/max3903","html_url":"https://github.com/max3903","followers_url":"https://api.github.com/users/max3903/followers","following_url":"https://api.github.com/users/max3903/following{/other_user}","gists_url":"https://api.github.com/users/max3903/gists{/gist_id}","starred_url":"https://api.github.com/users/max3903/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max3903/subscriptions","organizations_url":"https://api.github.com/users/max3903/orgs","repos_url":"https://api.github.com/users/max3903/repos","events_url":"https://api.github.com/users/max3903/events{/privacy}","received_events_url":"https://api.github.com/users/max3903/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":12,"state":"open","created_at":"2015-02-27T20:13:18Z","updated_at":"2015-08-06T10:59:41Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/OCA/sale-workflow/pulls/190/commits","review_comments_url":"https://api.github.com/repos/OCA/sale-workflow/pulls/190/comments","review_comment_url":"https://api.github.com/repos/OCA/sale-workflow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/sale-workflow/issues/190/comments","statuses_url":"https://api.github.com/repos/OCA/sale-workflow/statuses/ae9ca4ef9ceae6b113d2c64825b51f5b4622cae4","head":{"label":"grap:8.0_PORT_stock_picking_reorder_lines","ref":"8.0_PORT_stock_picking_reorder_lines","sha":"ae9ca4ef9ceae6b113d2c64825b51f5b4622cae4","user":{"login":"grap","id":6085360,"avatar_url":"https://avatars.githubusercontent.com/u/6085360?v=3","gravatar_id":"","url":"https://api.github.com/users/grap","html_url":"https://github.com/grap","followers_url":"https://api.github.com/users/grap/followers","following_url":"https://api.github.com/users/grap/following{/other_user}","gists_url":"https://api.github.com/users/grap/gists{/gist_id}","starred_url":"https://api.github.com/users/grap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grap/subscriptions","organizations_url":"https://api.github.com/users/grap/orgs","repos_url":"https://api.github.com/users/grap/repos","events_url":"https://api.github.com/users/grap/events{/privacy}","received_events_url":"https://api.github.com/users/grap/received_events","type":"Organization","site_admin":false},"repo":{"id":35156443,"name":"sale-workflow","full_name":"grap/sale-workflow","owner":{"login":"grap","id":6085360,"avatar_url":"https://avatars.githubusercontent.com/u/6085360?v=3","gravatar_id":"","url":"https://api.github.com/users/grap","html_url":"https://github.com/grap","followers_url":"https://api.github.com/users/grap/followers","following_url":"https://api.github.com/users/grap/following{/other_user}","gists_url":"https://api.github.com/users/grap/gists{/gist_id}","starred_url":"https://api.github.com/users/grap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grap/subscriptions","organizations_url":"https://api.github.com/users/grap/orgs","repos_url":"https://api.github.com/users/grap/repos","events_url":"https://api.github.com/users/grap/events{/privacy}","received_events_url":"https://api.github.com/users/grap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/grap/sale-workflow","description":"Odoo Sales, Workflow and Organization","fork":true,"url":"https://api.github.com/repos/grap/sale-workflow","forks_url":"https://api.github.com/repos/grap/sale-workflow/forks","keys_url":"https://api.github.com/repos/grap/sale-workflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grap/sale-workflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grap/sale-workflow/teams","hooks_url":"https://api.github.com/repos/grap/sale-workflow/hooks","issue_events_url":"https://api.github.com/repos/grap/sale-workflow/issues/events{/number}","events_url":"https://api.github.com/repos/grap/sale-workflow/events","assignees_url":"https://api.github.com/repos/grap/sale-workflow/assignees{/user}","branches_url":"https://api.github.com/repos/grap/sale-workflow/branches{/branch}","tags_url":"https://api.github.com/repos/grap/sale-workflow/tags","blobs_url":"https://api.github.com/repos/grap/sale-workflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grap/sale-workflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grap/sale-workflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/grap/sale-workflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grap/sale-workflow/statuses/{sha}","languages_url":"https://api.github.com/repos/grap/sale-workflow/languages","stargazers_url":"https://api.github.com/repos/grap/sale-workflow/stargazers","contributors_url":"https://api.github.com/repos/grap/sale-workflow/contributors","subscribers_url":"https://api.github.com/repos/grap/sale-workflow/subscribers","subscription_url":"https://api.github.com/repos/grap/sale-workflow/subscription","commits_url":"https://api.github.com/repos/grap/sale-workflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/grap/sale-workflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/grap/sale-workflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/grap/sale-workflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/grap/sale-workflow/contents/{+path}","compare_url":"https://api.github.com/repos/grap/sale-workflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grap/sale-workflow/merges","archive_url":"https://api.github.com/repos/grap/sale-workflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grap/sale-workflow/downloads","issues_url":"https://api.github.com/repos/grap/sale-workflow/issues{/number}","pulls_url":"https://api.github.com/repos/grap/sale-workflow/pulls{/number}","milestones_url":"https://api.github.com/repos/grap/sale-workflow/milestones{/number}","notifications_url":"https://api.github.com/repos/grap/sale-workflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grap/sale-workflow/labels{/name}","releases_url":"https://api.github.com/repos/grap/sale-workflow/releases{/id}","created_at":"2015-05-06T12:13:31Z","updated_at":"2015-05-06T12:13:32Z","pushed_at":"2015-07-22T14:51:27Z","git_url":"git://github.com/grap/sale-workflow.git","ssh_url":"git@github.com:grap/sale-workflow.git","clone_url":"https://github.com/grap/sale-workflow.git","svn_url":"https://github.com/grap/sale-workflow","homepage":"","size":1264,"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":"d0a23572f49ef5ca77283a62e30c5ccabdb1f018","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":20882412,"name":"sale-workflow","full_name":"OCA/sale-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/sale-workflow","description":"Odoo Sales, Workflow and Organization","fork":false,"url":"https://api.github.com/repos/OCA/sale-workflow","forks_url":"https://api.github.com/repos/OCA/sale-workflow/forks","keys_url":"https://api.github.com/repos/OCA/sale-workflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/sale-workflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/sale-workflow/teams","hooks_url":"https://api.github.com/repos/OCA/sale-workflow/hooks","issue_events_url":"https://api.github.com/repos/OCA/sale-workflow/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/sale-workflow/events","assignees_url":"https://api.github.com/repos/OCA/sale-workflow/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/sale-workflow/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/sale-workflow/tags","blobs_url":"https://api.github.com/repos/OCA/sale-workflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/sale-workflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/sale-workflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/sale-workflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/sale-workflow/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/sale-workflow/languages","stargazers_url":"https://api.github.com/repos/OCA/sale-workflow/stargazers","contributors_url":"https://api.github.com/repos/OCA/sale-workflow/contributors","subscribers_url":"https://api.github.com/repos/OCA/sale-workflow/subscribers","subscription_url":"https://api.github.com/repos/OCA/sale-workflow/subscription","commits_url":"https://api.github.com/repos/OCA/sale-workflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/sale-workflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/sale-workflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/sale-workflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/sale-workflow/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/sale-workflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/sale-workflow/merges","archive_url":"https://api.github.com/repos/OCA/sale-workflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/sale-workflow/downloads","issues_url":"https://api.github.com/repos/OCA/sale-workflow/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/sale-workflow/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/sale-workflow/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/sale-workflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/sale-workflow/labels{/name}","releases_url":"https://api.github.com/repos/OCA/sale-workflow/releases{/id}","created_at":"2014-06-16T11:26:39Z","updated_at":"2015-08-13T14:29:37Z","pushed_at":"2015-08-28T13:48:51Z","git_url":"git://github.com/OCA/sale-workflow.git","ssh_url":"git@github.com:OCA/sale-workflow.git","clone_url":"https://github.com/OCA/sale-workflow.git","svn_url":"https://github.com/OCA/sale-workflow","homepage":"","size":4173,"stargazers_count":18,"watchers_count":18,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":89,"mirror_url":null,"open_issues_count":58,"forks":89,"open_issues":58,"watchers":18,"default_branch":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/sale-workflow/pulls/190"},"html":{"href":"https://github.com/OCA/sale-workflow/pull/190"},"issue":{"href":"https://api.github.com/repos/OCA/sale-workflow/issues/190"},"comments":{"href":"https://api.github.com/repos/OCA/sale-workflow/issues/190/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/sale-workflow/pulls/190/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/sale-workflow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/sale-workflow/pulls/190/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/sale-workflow/statuses/ae9ca4ef9ceae6b113d2c64825b51f5b4622cae4"}}}}