{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/account-invoicing/pulls/comments/39848579","id":39848579,"diff_hunk":"@@ -0,0 +1,166 @@\n+# -*- coding: utf-8 -*-\n+##############################################################################\n+#\n+#     This file is part of account_invoice_split,\n+#     an Odoo module.\n+#\n+#     Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>)\n+#\n+#     account_invoice_split is free software:\n+#     you can redistribute it and/or modify it under the terms of the GNU\n+#     Affero General Public License as published by the Free Software\n+#     Foundation,either version 3 of the License, or (at your option) any\n+#     later version.\n+#\n+#     account_invoice_split is distributed\n+#     in the hope that it will be useful, but WITHOUT ANY WARRANTY; without\n+#     even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n+#     PURPOSE.  See the 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 account_invoice_split.\n+#     If not, see <http://www.gnu.org/licenses/>.\n+#\n+##############################################################################\n+\n+from openerp import models, fields, api, exceptions, _\n+import openerp.addons.decimal_precision as dp\n+\n+FIELD_MAPPING = [('id', 'origin_invoice_line_id'),\n+                 ('product_id', 'product_id'),\n+                 ('name', 'name'),\n+                 ('quantity', 'total_quantity')]","path":"account_invoice_split/wizard/account_invoice_split.py","position":32,"original_position":32,"commit_id":"c0403bc4b7656f6d6b76063d413fbb8c0eec0941","original_commit_id":"c0403bc4b7656f6d6b76063d413fbb8c0eec0941","user":{"login":"sbidoul","id":692075,"avatar_url":"https://avatars.githubusercontent.com/u/692075?v=3","gravatar_id":"","url":"https://api.github.com/users/sbidoul","html_url":"https://github.com/sbidoul","followers_url":"https://api.github.com/users/sbidoul/followers","following_url":"https://api.github.com/users/sbidoul/following{/other_user}","gists_url":"https://api.github.com/users/sbidoul/gists{/gist_id}","starred_url":"https://api.github.com/users/sbidoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbidoul/subscriptions","organizations_url":"https://api.github.com/users/sbidoul/orgs","repos_url":"https://api.github.com/users/sbidoul/repos","events_url":"https://api.github.com/users/sbidoul/events{/privacy}","received_events_url":"https://api.github.com/users/sbidoul/received_events","type":"User","site_admin":false},"body":"It's better to have globals immutables. Make `FIELD_MAPPING` a tuple instead of a list. ","created_at":"2015-09-18T12:17:59Z","updated_at":"2015-09-18T12:17:59Z","html_url":"https://github.com/OCA/account-invoicing/pull/97#discussion_r39848579","pull_request_url":"https://api.github.com/repos/OCA/account-invoicing/pulls/97","_links":{"self":{"href":"https://api.github.com/repos/OCA/account-invoicing/pulls/comments/39848579"},"html":{"href":"https://github.com/OCA/account-invoicing/pull/97#discussion_r39848579"},"pull_request":{"href":"https://api.github.com/repos/OCA/account-invoicing/pulls/97"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/account-invoicing/pulls/97","id":43526887,"html_url":"https://github.com/OCA/account-invoicing/pull/97","diff_url":"https://github.com/OCA/account-invoicing/pull/97.diff","patch_url":"https://github.com/OCA/account-invoicing/pull/97.patch","issue_url":"https://api.github.com/repos/OCA/account-invoicing/issues/97","number":97,"state":"open","locked":false,"title":"[8.0] Add account invoice split modules","user":{"login":"adrienpeiffer","id":8035793,"avatar_url":"https://avatars.githubusercontent.com/u/8035793?v=3","gravatar_id":"","url":"https://api.github.com/users/adrienpeiffer","html_url":"https://github.com/adrienpeiffer","followers_url":"https://api.github.com/users/adrienpeiffer/followers","following_url":"https://api.github.com/users/adrienpeiffer/following{/other_user}","gists_url":"https://api.github.com/users/adrienpeiffer/gists{/gist_id}","starred_url":"https://api.github.com/users/adrienpeiffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrienpeiffer/subscriptions","organizations_url":"https://api.github.com/users/adrienpeiffer/orgs","repos_url":"https://api.github.com/users/adrienpeiffer/repos","events_url":"https://api.github.com/users/adrienpeiffer/events{/privacy}","received_events_url":"https://api.github.com/users/adrienpeiffer/received_events","type":"User","site_admin":false},"body":"This PR adds invoice split functionality.\r\nFirst, account_invoice_split module which is the main module that allow to split invoice.\r\nAfter that, there are several auto_install modules that provide a compatibility with other Odoo/OCA modules :\r\n* account_invoice_split_purchase adds compatibility with purchase order workflow\r\n* account_invoice_split_sale adds compatibility with sale order workflow\r\n* account_invoice_split_sale_stock adds compatibility with sale order workflow but specifics for sale_stock module\r\n* account_invoice_split_payment that consider fields on account_payment_partner from OCA/bank-payment\r\n\r\nI propose all modules directly because they are all necessary for efficiency with an installation of all modules","created_at":"2015-08-27T14:54:17Z","updated_at":"2015-09-18T12:17:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6176fd5ed033b535d8772db724778388b82911cf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OCA/account-invoicing/pulls/97/commits","review_comments_url":"https://api.github.com/repos/OCA/account-invoicing/pulls/97/comments","review_comment_url":"https://api.github.com/repos/OCA/account-invoicing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/account-invoicing/issues/97/comments","statuses_url":"https://api.github.com/repos/OCA/account-invoicing/statuses/c0403bc4b7656f6d6b76063d413fbb8c0eec0941","head":{"label":"acsone:8.0-add-account-invoice-split-ape","ref":"8.0-add-account-invoice-split-ape","sha":"c0403bc4b7656f6d6b76063d413fbb8c0eec0941","user":{"login":"acsone","id":7601056,"avatar_url":"https://avatars.githubusercontent.com/u/7601056?v=3","gravatar_id":"","url":"https://api.github.com/users/acsone","html_url":"https://github.com/acsone","followers_url":"https://api.github.com/users/acsone/followers","following_url":"https://api.github.com/users/acsone/following{/other_user}","gists_url":"https://api.github.com/users/acsone/gists{/gist_id}","starred_url":"https://api.github.com/users/acsone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acsone/subscriptions","organizations_url":"https://api.github.com/users/acsone/orgs","repos_url":"https://api.github.com/users/acsone/repos","events_url":"https://api.github.com/users/acsone/events{/privacy}","received_events_url":"https://api.github.com/users/acsone/received_events","type":"Organization","site_admin":false},"repo":{"id":21984067,"name":"account-invoicing","full_name":"acsone/account-invoicing","owner":{"login":"acsone","id":7601056,"avatar_url":"https://avatars.githubusercontent.com/u/7601056?v=3","gravatar_id":"","url":"https://api.github.com/users/acsone","html_url":"https://github.com/acsone","followers_url":"https://api.github.com/users/acsone/followers","following_url":"https://api.github.com/users/acsone/following{/other_user}","gists_url":"https://api.github.com/users/acsone/gists{/gist_id}","starred_url":"https://api.github.com/users/acsone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acsone/subscriptions","organizations_url":"https://api.github.com/users/acsone/orgs","repos_url":"https://api.github.com/users/acsone/repos","events_url":"https://api.github.com/users/acsone/events{/privacy}","received_events_url":"https://api.github.com/users/acsone/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/acsone/account-invoicing","description":"","fork":true,"url":"https://api.github.com/repos/acsone/account-invoicing","forks_url":"https://api.github.com/repos/acsone/account-invoicing/forks","keys_url":"https://api.github.com/repos/acsone/account-invoicing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acsone/account-invoicing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acsone/account-invoicing/teams","hooks_url":"https://api.github.com/repos/acsone/account-invoicing/hooks","issue_events_url":"https://api.github.com/repos/acsone/account-invoicing/issues/events{/number}","events_url":"https://api.github.com/repos/acsone/account-invoicing/events","assignees_url":"https://api.github.com/repos/acsone/account-invoicing/assignees{/user}","branches_url":"https://api.github.com/repos/acsone/account-invoicing/branches{/branch}","tags_url":"https://api.github.com/repos/acsone/account-invoicing/tags","blobs_url":"https://api.github.com/repos/acsone/account-invoicing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acsone/account-invoicing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acsone/account-invoicing/git/refs{/sha}","trees_url":"https://api.github.com/repos/acsone/account-invoicing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acsone/account-invoicing/statuses/{sha}","languages_url":"https://api.github.com/repos/acsone/account-invoicing/languages","stargazers_url":"https://api.github.com/repos/acsone/account-invoicing/stargazers","contributors_url":"https://api.github.com/repos/acsone/account-invoicing/contributors","subscribers_url":"https://api.github.com/repos/acsone/account-invoicing/subscribers","subscription_url":"https://api.github.com/repos/acsone/account-invoicing/subscription","commits_url":"https://api.github.com/repos/acsone/account-invoicing/commits{/sha}","git_commits_url":"https://api.github.com/repos/acsone/account-invoicing/git/commits{/sha}","comments_url":"https://api.github.com/repos/acsone/account-invoicing/comments{/number}","issue_comment_url":"https://api.github.com/repos/acsone/account-invoicing/issues/comments{/number}","contents_url":"https://api.github.com/repos/acsone/account-invoicing/contents/{+path}","compare_url":"https://api.github.com/repos/acsone/account-invoicing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acsone/account-invoicing/merges","archive_url":"https://api.github.com/repos/acsone/account-invoicing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acsone/account-invoicing/downloads","issues_url":"https://api.github.com/repos/acsone/account-invoicing/issues{/number}","pulls_url":"https://api.github.com/repos/acsone/account-invoicing/pulls{/number}","milestones_url":"https://api.github.com/repos/acsone/account-invoicing/milestones{/number}","notifications_url":"https://api.github.com/repos/acsone/account-invoicing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acsone/account-invoicing/labels{/name}","releases_url":"https://api.github.com/repos/acsone/account-invoicing/releases{/id}","created_at":"2014-07-18T15:00:51Z","updated_at":"2015-04-29T07:01:01Z","pushed_at":"2015-09-17T13:48:38Z","git_url":"git://github.com/acsone/account-invoicing.git","ssh_url":"git@github.com:acsone/account-invoicing.git","clone_url":"https://github.com/acsone/account-invoicing.git","svn_url":"https://github.com/acsone/account-invoicing","homepage":null,"size":1388,"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":"OCA:8.0","ref":"8.0","sha":"53a08fb26a424fb5a60ea3222c1251305a88fa28","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":20881777,"name":"account-invoicing","full_name":"OCA/account-invoicing","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/account-invoicing","description":"Odoo Invoicing Extension Addons","fork":false,"url":"https://api.github.com/repos/OCA/account-invoicing","forks_url":"https://api.github.com/repos/OCA/account-invoicing/forks","keys_url":"https://api.github.com/repos/OCA/account-invoicing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/account-invoicing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/account-invoicing/teams","hooks_url":"https://api.github.com/repos/OCA/account-invoicing/hooks","issue_events_url":"https://api.github.com/repos/OCA/account-invoicing/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/account-invoicing/events","assignees_url":"https://api.github.com/repos/OCA/account-invoicing/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/account-invoicing/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/account-invoicing/tags","blobs_url":"https://api.github.com/repos/OCA/account-invoicing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/account-invoicing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/account-invoicing/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/account-invoicing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/account-invoicing/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/account-invoicing/languages","stargazers_url":"https://api.github.com/repos/OCA/account-invoicing/stargazers","contributors_url":"https://api.github.com/repos/OCA/account-invoicing/contributors","subscribers_url":"https://api.github.com/repos/OCA/account-invoicing/subscribers","subscription_url":"https://api.github.com/repos/OCA/account-invoicing/subscription","commits_url":"https://api.github.com/repos/OCA/account-invoicing/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/account-invoicing/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/account-invoicing/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/account-invoicing/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/account-invoicing/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/account-invoicing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/account-invoicing/merges","archive_url":"https://api.github.com/repos/OCA/account-invoicing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/account-invoicing/downloads","issues_url":"https://api.github.com/repos/OCA/account-invoicing/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/account-invoicing/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/account-invoicing/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/account-invoicing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/account-invoicing/labels{/name}","releases_url":"https://api.github.com/repos/OCA/account-invoicing/releases{/id}","created_at":"2014-06-16T10:59:46Z","updated_at":"2015-09-16T22:14:59Z","pushed_at":"2015-09-18T07:30:27Z","git_url":"git://github.com/OCA/account-invoicing.git","ssh_url":"git@github.com:OCA/account-invoicing.git","clone_url":"https://github.com/OCA/account-invoicing.git","svn_url":"https://github.com/OCA/account-invoicing","homepage":"","size":2342,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":64,"mirror_url":null,"open_issues_count":16,"forks":64,"open_issues":16,"watchers":12,"default_branch":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/account-invoicing/pulls/97"},"html":{"href":"https://github.com/OCA/account-invoicing/pull/97"},"issue":{"href":"https://api.github.com/repos/OCA/account-invoicing/issues/97"},"comments":{"href":"https://api.github.com/repos/OCA/account-invoicing/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/account-invoicing/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/account-invoicing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/account-invoicing/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/account-invoicing/statuses/c0403bc4b7656f6d6b76063d413fbb8c0eec0941"}}}}