{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/stock-logistics-transport/pulls/comments/29578893","id":29578893,"diff_hunk":"@@ -0,0 +1,44 @@\n+# -*- coding: utf-8 -*-\n+#\n+#\n+#    Author: Yannick Vaucher\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 description.\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+from openerp import models, fields, api\n+\n+\n+class ConsigneeSetter(models.TransientModel):\n+    _name = \"shipment.consignee.setter\"\n+    _inherit = \"shipment.value.setter\"\n+\n+    consignee_id = fields.Many2one(\n+        'res.partner',\n+        'Consignee',\n+        help=\"Shipment consignee\"\n+    )\n+\n+    @api.multi\n+    def set_value(self):\n+        \"\"\" Changes the Shipment Consignee and update departure and arrival\n+        pickings \"\"\"\n+        for setter in self:","path":"stock_shipment_management/wizard/shipment_consignee_setter.py","position":38,"original_position":38,"commit_id":"93ad08474492e16f6cb9d6075c524c4cd219f3bb","original_commit_id":"93ad08474492e16f6cb9d6075c524c4cd219f3bb","user":{"login":"lepistone","id":1314778,"avatar_url":"https://avatars.githubusercontent.com/u/1314778?v=3","gravatar_id":"","url":"https://api.github.com/users/lepistone","html_url":"https://github.com/lepistone","followers_url":"https://api.github.com/users/lepistone/followers","following_url":"https://api.github.com/users/lepistone/following{/other_user}","gists_url":"https://api.github.com/users/lepistone/gists{/gist_id}","starred_url":"https://api.github.com/users/lepistone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lepistone/subscriptions","organizations_url":"https://api.github.com/users/lepistone/orgs","repos_url":"https://api.github.com/users/lepistone/repos","events_url":"https://api.github.com/users/lepistone/events{/privacy}","received_events_url":"https://api.github.com/users/lepistone/received_events","type":"User","site_admin":false},"body":"Can `len(self)` be different from `1`? Would it make sense? Consignees could be different in that case. Maybe we could replace the `for` loop with `self.ensure_one()` ?","created_at":"2015-05-04T11:50:37Z","updated_at":"2015-05-04T11:50:37Z","html_url":"https://github.com/OCA/stock-logistics-transport/pull/13#discussion_r29578893","pull_request_url":"https://api.github.com/repos/OCA/stock-logistics-transport/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/OCA/stock-logistics-transport/pulls/comments/29578893"},"html":{"href":"https://github.com/OCA/stock-logistics-transport/pull/13#discussion_r29578893"},"pull_request":{"href":"https://api.github.com/repos/OCA/stock-logistics-transport/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/stock-logistics-transport/pulls/13","id":33870061,"html_url":"https://github.com/OCA/stock-logistics-transport/pull/13","diff_url":"https://github.com/OCA/stock-logistics-transport/pull/13.diff","patch_url":"https://github.com/OCA/stock-logistics-transport/pull/13.patch","issue_url":"https://api.github.com/repos/OCA/stock-logistics-transport/issues/13","number":13,"state":"open","locked":false,"title":"8.0 shipment plan v1","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":"- Change group by filters and columns displayed on move Pipeline\r\n- Add wizard to change consignee and To address\r\n- From address cannot be changed anymore","created_at":"2015-04-22T15:30:03Z","updated_at":"2015-05-04T11:50:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e42e1f2504befd2e2baa6b156807b07f12d5add8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OCA/stock-logistics-transport/pulls/13/commits","review_comments_url":"https://api.github.com/repos/OCA/stock-logistics-transport/pulls/13/comments","review_comment_url":"https://api.github.com/repos/OCA/stock-logistics-transport/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/stock-logistics-transport/issues/13/comments","statuses_url":"https://api.github.com/repos/OCA/stock-logistics-transport/statuses/93ad08474492e16f6cb9d6075c524c4cd219f3bb","head":{"label":"yvaucher:8.0-shipment-plan-v1","ref":"8.0-shipment-plan-v1","sha":"93ad08474492e16f6cb9d6075c524c4cd219f3bb","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},"repo":{"id":33667407,"name":"stock-logistics-transport","full_name":"yvaucher/stock-logistics-transport","owner":{"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},"private":false,"html_url":"https://github.com/yvaucher/stock-logistics-transport","description":"Transport management in Odoo ","fork":true,"url":"https://api.github.com/repos/yvaucher/stock-logistics-transport","forks_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/forks","keys_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/teams","hooks_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/hooks","issue_events_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/issues/events{/number}","events_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/events","assignees_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/assignees{/user}","branches_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/branches{/branch}","tags_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/tags","blobs_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/git/refs{/sha}","trees_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/statuses/{sha}","languages_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/languages","stargazers_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/stargazers","contributors_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/contributors","subscribers_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/subscribers","subscription_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/subscription","commits_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/commits{/sha}","git_commits_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/git/commits{/sha}","comments_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/comments{/number}","issue_comment_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/issues/comments{/number}","contents_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/contents/{+path}","compare_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/merges","archive_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/downloads","issues_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/issues{/number}","pulls_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/pulls{/number}","milestones_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/milestones{/number}","notifications_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/labels{/name}","releases_url":"https://api.github.com/repos/yvaucher/stock-logistics-transport/releases{/id}","created_at":"2015-04-09T12:24:29Z","updated_at":"2015-04-09T12:24:29Z","pushed_at":"2015-04-30T10:10:08Z","git_url":"git://github.com/yvaucher/stock-logistics-transport.git","ssh_url":"git@github.com:yvaucher/stock-logistics-transport.git","clone_url":"https://github.com/yvaucher/stock-logistics-transport.git","svn_url":"https://github.com/yvaucher/stock-logistics-transport","homepage":null,"size":277,"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":"efa529cb876b8708e44d78a7dcfda0fbef2bf1ce","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":32576765,"name":"stock-logistics-transport","full_name":"OCA/stock-logistics-transport","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/stock-logistics-transport","description":"Transport management in Odoo ","fork":false,"url":"https://api.github.com/repos/OCA/stock-logistics-transport","forks_url":"https://api.github.com/repos/OCA/stock-logistics-transport/forks","keys_url":"https://api.github.com/repos/OCA/stock-logistics-transport/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/stock-logistics-transport/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/stock-logistics-transport/teams","hooks_url":"https://api.github.com/repos/OCA/stock-logistics-transport/hooks","issue_events_url":"https://api.github.com/repos/OCA/stock-logistics-transport/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/stock-logistics-transport/events","assignees_url":"https://api.github.com/repos/OCA/stock-logistics-transport/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/stock-logistics-transport/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/stock-logistics-transport/tags","blobs_url":"https://api.github.com/repos/OCA/stock-logistics-transport/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/stock-logistics-transport/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/stock-logistics-transport/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/stock-logistics-transport/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/stock-logistics-transport/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/stock-logistics-transport/languages","stargazers_url":"https://api.github.com/repos/OCA/stock-logistics-transport/stargazers","contributors_url":"https://api.github.com/repos/OCA/stock-logistics-transport/contributors","subscribers_url":"https://api.github.com/repos/OCA/stock-logistics-transport/subscribers","subscription_url":"https://api.github.com/repos/OCA/stock-logistics-transport/subscription","commits_url":"https://api.github.com/repos/OCA/stock-logistics-transport/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/stock-logistics-transport/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/stock-logistics-transport/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/stock-logistics-transport/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/stock-logistics-transport/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/stock-logistics-transport/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/stock-logistics-transport/merges","archive_url":"https://api.github.com/repos/OCA/stock-logistics-transport/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/stock-logistics-transport/downloads","issues_url":"https://api.github.com/repos/OCA/stock-logistics-transport/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/stock-logistics-transport/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/stock-logistics-transport/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/stock-logistics-transport/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/stock-logistics-transport/labels{/name}","releases_url":"https://api.github.com/repos/OCA/stock-logistics-transport/releases{/id}","created_at":"2015-03-20T10:11:21Z","updated_at":"2015-04-30T14:58:20Z","pushed_at":"2015-05-04T11:24:22Z","git_url":"git://github.com/OCA/stock-logistics-transport.git","ssh_url":"git@github.com:OCA/stock-logistics-transport.git","clone_url":"https://github.com/OCA/stock-logistics-transport.git","svn_url":"https://github.com/OCA/stock-logistics-transport","homepage":null,"size":711,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":2,"forks":6,"open_issues":2,"watchers":2,"default_branch":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/stock-logistics-transport/pulls/13"},"html":{"href":"https://github.com/OCA/stock-logistics-transport/pull/13"},"issue":{"href":"https://api.github.com/repos/OCA/stock-logistics-transport/issues/13"},"comments":{"href":"https://api.github.com/repos/OCA/stock-logistics-transport/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/stock-logistics-transport/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/stock-logistics-transport/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/stock-logistics-transport/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/stock-logistics-transport/statuses/93ad08474492e16f6cb9d6075c524c4cd219f3bb"}}}}