{"action":"created","comment":{"url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/comments/36060624","id":36060624,"diff_hunk":"@@ -0,0 +1,68 @@\n+# -*- coding: utf-8 -*-\n+##############################################################################\n+# For copyright and license notices, see __openerp__.py file in root directory\n+##############################################################################\n+from openerp import models, fields, api, exceptions, _\n+import time\n+\n+\n+class SaleOrder(models.Model):\n+    _inherit = 'sale.order'\n+\n+    other_expenses = fields.One2many(\n+        'sale.order.other.expense', 'sale', string='Other expenses',","path":"sale_order_other_expenses/models/sale_order.py","position":null,"original_position":13,"commit_id":"e87867a7c571f14f7e7873b115264aaa2ade1c33","original_commit_id":"1b0d96a3efce4ecfc3e31f0f35cfaaf47780f9b7","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":"Esto es porque el método del name_get necesita tener por contexto el id del pedido de venta (https://github.com/odoo/odoo/blob/8.0/addons/delivery/delivery.py#L40), por lo que en el XML, tendrás que ponerle ese valor:\r\n`<field name=\"other_expenses\" widget=\"many2many_tags\" context=\"{'order_id': parent}\">`","created_at":"2015-08-03T07:12:59Z","updated_at":"2015-08-03T07:12:59Z","html_url":"https://github.com/odoomrp/odoomrp-wip/pull/928#discussion_r36060624","pull_request_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/928","_links":{"self":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/comments/36060624"},"html":{"href":"https://github.com/odoomrp/odoomrp-wip/pull/928#discussion_r36060624"},"pull_request":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/928"}}},"pull_request":{"url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/928","id":41019994,"html_url":"https://github.com/odoomrp/odoomrp-wip/pull/928","diff_url":"https://github.com/odoomrp/odoomrp-wip/pull/928.diff","patch_url":"https://github.com/odoomrp/odoomrp-wip/pull/928.patch","issue_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/928","number":928,"state":"open","locked":false,"title":"[ADD] delivery_multi_expense: Define in sales orders, other expens…","user":{"login":"alfredoavanzosc","id":8257820,"avatar_url":"https://avatars.githubusercontent.com/u/8257820?v=3","gravatar_id":"","url":"https://api.github.com/users/alfredoavanzosc","html_url":"https://github.com/alfredoavanzosc","followers_url":"https://api.github.com/users/alfredoavanzosc/followers","following_url":"https://api.github.com/users/alfredoavanzosc/following{/other_user}","gists_url":"https://api.github.com/users/alfredoavanzosc/gists{/gist_id}","starred_url":"https://api.github.com/users/alfredoavanzosc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfredoavanzosc/subscriptions","organizations_url":"https://api.github.com/users/alfredoavanzosc/orgs","repos_url":"https://api.github.com/users/alfredoavanzosc/repos","events_url":"https://api.github.com/users/alfredoavanzosc/events{/privacy}","received_events_url":"https://api.github.com/users/alfredoavanzosc/received_events","type":"User","site_admin":false},"body":"…es that are not transportation.\r\n\r\nNuevo módulo para poder definir en los pedidos de venta otros gastos que no sean transportes. Este nuevo requerimiento se ha solicitado en la reclamación CLM0126 - Gastos seguros y transportes.","created_at":"2015-07-28T14:48:45Z","updated_at":"2015-08-03T07:12:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2faa66a6048f759b76aa38232b808828e7ce0990","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/928/commits","review_comments_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/928/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/928/comments","statuses_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/statuses/e87867a7c571f14f7e7873b115264aaa2ade1c33","head":{"label":"alfredoavanzosc:odoomrp-sale_order_other_expenses","ref":"odoomrp-sale_order_other_expenses","sha":"e87867a7c571f14f7e7873b115264aaa2ade1c33","user":{"login":"alfredoavanzosc","id":8257820,"avatar_url":"https://avatars.githubusercontent.com/u/8257820?v=3","gravatar_id":"","url":"https://api.github.com/users/alfredoavanzosc","html_url":"https://github.com/alfredoavanzosc","followers_url":"https://api.github.com/users/alfredoavanzosc/followers","following_url":"https://api.github.com/users/alfredoavanzosc/following{/other_user}","gists_url":"https://api.github.com/users/alfredoavanzosc/gists{/gist_id}","starred_url":"https://api.github.com/users/alfredoavanzosc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfredoavanzosc/subscriptions","organizations_url":"https://api.github.com/users/alfredoavanzosc/orgs","repos_url":"https://api.github.com/users/alfredoavanzosc/repos","events_url":"https://api.github.com/users/alfredoavanzosc/events{/privacy}","received_events_url":"https://api.github.com/users/alfredoavanzosc/received_events","type":"User","site_admin":false},"repo":{"id":34321725,"name":"odoomrp-wip-1","full_name":"alfredoavanzosc/odoomrp-wip-1","owner":{"login":"alfredoavanzosc","id":8257820,"avatar_url":"https://avatars.githubusercontent.com/u/8257820?v=3","gravatar_id":"","url":"https://api.github.com/users/alfredoavanzosc","html_url":"https://github.com/alfredoavanzosc","followers_url":"https://api.github.com/users/alfredoavanzosc/followers","following_url":"https://api.github.com/users/alfredoavanzosc/following{/other_user}","gists_url":"https://api.github.com/users/alfredoavanzosc/gists{/gist_id}","starred_url":"https://api.github.com/users/alfredoavanzosc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfredoavanzosc/subscriptions","organizations_url":"https://api.github.com/users/alfredoavanzosc/orgs","repos_url":"https://api.github.com/users/alfredoavanzosc/repos","events_url":"https://api.github.com/users/alfredoavanzosc/events{/privacy}","received_events_url":"https://api.github.com/users/alfredoavanzosc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alfredoavanzosc/odoomrp-wip-1","description":"WIP of OdooMRP","fork":true,"url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1","forks_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/forks","keys_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/teams","hooks_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/hooks","issue_events_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/issues/events{/number}","events_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/events","assignees_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/assignees{/user}","branches_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/branches{/branch}","tags_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/tags","blobs_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/statuses/{sha}","languages_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/languages","stargazers_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/stargazers","contributors_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/contributors","subscribers_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/subscribers","subscription_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/subscription","commits_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/contents/{+path}","compare_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/merges","archive_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/downloads","issues_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/issues{/number}","pulls_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/pulls{/number}","milestones_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/milestones{/number}","notifications_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/labels{/name}","releases_url":"https://api.github.com/repos/alfredoavanzosc/odoomrp-wip-1/releases{/id}","created_at":"2015-04-21T10:59:59Z","updated_at":"2015-04-21T11:00:01Z","pushed_at":"2015-07-30T08:16:16Z","git_url":"git://github.com/alfredoavanzosc/odoomrp-wip-1.git","ssh_url":"git@github.com:alfredoavanzosc/odoomrp-wip-1.git","clone_url":"https://github.com/alfredoavanzosc/odoomrp-wip-1.git","svn_url":"https://github.com/alfredoavanzosc/odoomrp-wip-1","homepage":"http://www.odoomrp.com","size":3959,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"8.0"}},"base":{"label":"odoomrp:8.0","ref":"8.0","sha":"0d14befd9f45f1da92aa1b1556cf7db9c3f5f97a","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}","created_at":"2014-07-22T23:29:59Z","updated_at":"2015-07-31T12:45:39Z","pushed_at":"2015-08-02T10:20:20Z","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":9733,"stargazers_count":47,"watchers_count":47,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":99,"mirror_url":null,"open_issues_count":30,"forks":99,"open_issues":30,"watchers":47,"default_branch":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/928"},"html":{"href":"https://github.com/odoomrp/odoomrp-wip/pull/928"},"issue":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/928"},"comments":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/928/comments"},"review_comments":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/pulls/928/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/928/commits"},"statuses":{"href":"https://api.github.com/repos/odoomrp/odoomrp-wip/statuses/e87867a7c571f14f7e7873b115264aaa2ade1c33"}}}}