{"action":"created","comment":{"url":"https://api.github.com/repos/robinkeunen/addons/pulls/comments/240955639","pull_request_review_id":184103693,"id":240955639,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDk1NTYzOQ==","diff_hunk":"@@ -0,0 +1,67 @@\n+# -*- coding: utf-8 -*-\r\n+# © 2018 Coop IT Easy (http://www.coopiteasy.be)\r\n+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).\r\n+\r\n+from odoo import api, fields, models, _\r\n+from odoo.exceptions import ValidationError\r\n+\r\n+\r\n+class SaleOrder(models.Model):\r\n+    _inherit = 'sale.order'\r\n+\r\n+    @api.model_cr\r\n+    def init(self):\r\n+        self.env.cr.execute(\"SELECT id FROM sale_order\"\r\n+                            \" WHERE reference_type IS NULL\")\r\n+        ids = (x[0] for x in self.env.cr.fetchall())\r\n+        sale_orders = self.browse(ids)\r\n+        sale_orders.write({'reference_type': 'none'})\r\n+\r\n+    @api.model\r\n+    def _get_reference_type(self):\r\n+        return [('none', _('Free Reference')),\r\n+                ('bba', _('BBA Structured Communication'))]\r\n+\r\n+    reference_type = fields.Selection('_get_reference_type',\r\n+                                      string='Payment Reference',\r\n+                                      required=True,\r\n+                                      readonly=True,\r\n+                                      states={'draft': [('readonly', False)]})\r","path":"l10n_be_sale_order_bba/models/sale.py","position":29,"original_position":29,"commit_id":"387d4461f7274f231b73c32750971c9c487296af","original_commit_id":"387d4461f7274f231b73c32750971c9c487296af","user":{"login":"houssine78","id":7766650,"node_id":"MDQ6VXNlcjc3NjY2NTA=","avatar_url":"https://avatars1.githubusercontent.com/u/7766650?v=4","gravatar_id":"","url":"https://api.github.com/users/houssine78","html_url":"https://github.com/houssine78","followers_url":"https://api.github.com/users/houssine78/followers","following_url":"https://api.github.com/users/houssine78/following{/other_user}","gists_url":"https://api.github.com/users/houssine78/gists{/gist_id}","starred_url":"https://api.github.com/users/houssine78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houssine78/subscriptions","organizations_url":"https://api.github.com/users/houssine78/orgs","repos_url":"https://api.github.com/users/houssine78/repos","events_url":"https://api.github.com/users/houssine78/events{/privacy}","received_events_url":"https://api.github.com/users/houssine78/received_events","type":"User","site_admin":false},"body":"faut juste pas en abuser ;)","created_at":"2018-12-12T10:21:38Z","updated_at":"2018-12-12T10:21:38Z","html_url":"https://github.com/robinkeunen/addons/pull/1#discussion_r240955639","pull_request_url":"https://api.github.com/repos/robinkeunen/addons/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/robinkeunen/addons/pulls/comments/240955639"},"html":{"href":"https://github.com/robinkeunen/addons/pull/1#discussion_r240955639"},"pull_request":{"href":"https://api.github.com/repos/robinkeunen/addons/pulls/1"}},"in_reply_to_id":240924293},"pull_request":{"url":"https://api.github.com/repos/robinkeunen/addons/pulls/1","id":237954123,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3OTU0MTIz","html_url":"https://github.com/robinkeunen/addons/pull/1","diff_url":"https://github.com/robinkeunen/addons/pull/1.diff","patch_url":"https://github.com/robinkeunen/addons/pull/1.patch","issue_url":"https://api.github.com/repos/robinkeunen/addons/issues/1","number":1,"state":"open","locked":false,"title":"20 - comm structurée sur le flux client (bon de commande et facture)","user":{"login":"robinkeunen","id":3082119,"node_id":"MDQ6VXNlcjMwODIxMTk=","avatar_url":"https://avatars3.githubusercontent.com/u/3082119?v=4","gravatar_id":"","url":"https://api.github.com/users/robinkeunen","html_url":"https://github.com/robinkeunen","followers_url":"https://api.github.com/users/robinkeunen/followers","following_url":"https://api.github.com/users/robinkeunen/following{/other_user}","gists_url":"https://api.github.com/users/robinkeunen/gists{/gist_id}","starred_url":"https://api.github.com/users/robinkeunen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinkeunen/subscriptions","organizations_url":"https://api.github.com/users/robinkeunen/orgs","repos_url":"https://api.github.com/users/robinkeunen/repos","events_url":"https://api.github.com/users/robinkeunen/events{/privacy}","received_events_url":"https://api.github.com/users/robinkeunen/received_events","type":"User","site_admin":false},"body":"[ref](https://gestion.coopiteasy.be/web#id=1325&view_type=form&model=project.task&menu_id=338&action=479)","created_at":"2018-12-12T08:45:29Z","updated_at":"2018-12-12T10:21:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"31e17e85b4677f3634310fc9ff44013b9efaad99","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/robinkeunen/addons/pulls/1/commits","review_comments_url":"https://api.github.com/repos/robinkeunen/addons/pulls/1/comments","review_comment_url":"https://api.github.com/repos/robinkeunen/addons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/robinkeunen/addons/issues/1/comments","statuses_url":"https://api.github.com/repos/robinkeunen/addons/statuses/387d4461f7274f231b73c32750971c9c487296af","head":{"label":"robinkeunen:structured-communication","ref":"structured-communication","sha":"387d4461f7274f231b73c32750971c9c487296af","user":{"login":"robinkeunen","id":3082119,"node_id":"MDQ6VXNlcjMwODIxMTk=","avatar_url":"https://avatars3.githubusercontent.com/u/3082119?v=4","gravatar_id":"","url":"https://api.github.com/users/robinkeunen","html_url":"https://github.com/robinkeunen","followers_url":"https://api.github.com/users/robinkeunen/followers","following_url":"https://api.github.com/users/robinkeunen/following{/other_user}","gists_url":"https://api.github.com/users/robinkeunen/gists{/gist_id}","starred_url":"https://api.github.com/users/robinkeunen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinkeunen/subscriptions","organizations_url":"https://api.github.com/users/robinkeunen/orgs","repos_url":"https://api.github.com/users/robinkeunen/repos","events_url":"https://api.github.com/users/robinkeunen/events{/privacy}","received_events_url":"https://api.github.com/users/robinkeunen/received_events","type":"User","site_admin":false},"repo":{"id":131998942,"node_id":"MDEwOlJlcG9zaXRvcnkxMzE5OTg5NDI=","name":"addons","full_name":"robinkeunen/addons","private":false,"owner":{"login":"robinkeunen","id":3082119,"node_id":"MDQ6VXNlcjMwODIxMTk=","avatar_url":"https://avatars3.githubusercontent.com/u/3082119?v=4","gravatar_id":"","url":"https://api.github.com/users/robinkeunen","html_url":"https://github.com/robinkeunen","followers_url":"https://api.github.com/users/robinkeunen/followers","following_url":"https://api.github.com/users/robinkeunen/following{/other_user}","gists_url":"https://api.github.com/users/robinkeunen/gists{/gist_id}","starred_url":"https://api.github.com/users/robinkeunen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinkeunen/subscriptions","organizations_url":"https://api.github.com/users/robinkeunen/orgs","repos_url":"https://api.github.com/users/robinkeunen/repos","events_url":"https://api.github.com/users/robinkeunen/events{/privacy}","received_events_url":"https://api.github.com/users/robinkeunen/received_events","type":"User","site_admin":false},"html_url":"https://github.com/robinkeunen/addons","description":null,"fork":true,"url":"https://api.github.com/repos/robinkeunen/addons","forks_url":"https://api.github.com/repos/robinkeunen/addons/forks","keys_url":"https://api.github.com/repos/robinkeunen/addons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robinkeunen/addons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robinkeunen/addons/teams","hooks_url":"https://api.github.com/repos/robinkeunen/addons/hooks","issue_events_url":"https://api.github.com/repos/robinkeunen/addons/issues/events{/number}","events_url":"https://api.github.com/repos/robinkeunen/addons/events","assignees_url":"https://api.github.com/repos/robinkeunen/addons/assignees{/user}","branches_url":"https://api.github.com/repos/robinkeunen/addons/branches{/branch}","tags_url":"https://api.github.com/repos/robinkeunen/addons/tags","blobs_url":"https://api.github.com/repos/robinkeunen/addons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robinkeunen/addons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robinkeunen/addons/git/refs{/sha}","trees_url":"https://api.github.com/repos/robinkeunen/addons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robinkeunen/addons/statuses/{sha}","languages_url":"https://api.github.com/repos/robinkeunen/addons/languages","stargazers_url":"https://api.github.com/repos/robinkeunen/addons/stargazers","contributors_url":"https://api.github.com/repos/robinkeunen/addons/contributors","subscribers_url":"https://api.github.com/repos/robinkeunen/addons/subscribers","subscription_url":"https://api.github.com/repos/robinkeunen/addons/subscription","commits_url":"https://api.github.com/repos/robinkeunen/addons/commits{/sha}","git_commits_url":"https://api.github.com/repos/robinkeunen/addons/git/commits{/sha}","comments_url":"https://api.github.com/repos/robinkeunen/addons/comments{/number}","issue_comment_url":"https://api.github.com/repos/robinkeunen/addons/issues/comments{/number}","contents_url":"https://api.github.com/repos/robinkeunen/addons/contents/{+path}","compare_url":"https://api.github.com/repos/robinkeunen/addons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robinkeunen/addons/merges","archive_url":"https://api.github.com/repos/robinkeunen/addons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robinkeunen/addons/downloads","issues_url":"https://api.github.com/repos/robinkeunen/addons/issues{/number}","pulls_url":"https://api.github.com/repos/robinkeunen/addons/pulls{/number}","milestones_url":"https://api.github.com/repos/robinkeunen/addons/milestones{/number}","notifications_url":"https://api.github.com/repos/robinkeunen/addons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robinkeunen/addons/labels{/name}","releases_url":"https://api.github.com/repos/robinkeunen/addons/releases{/id}","deployments_url":"https://api.github.com/repos/robinkeunen/addons/deployments","created_at":"2018-05-03T13:26:42Z","updated_at":"2018-12-03T09:41:09Z","pushed_at":"2018-12-12T08:47:11Z","git_url":"git://github.com/robinkeunen/addons.git","ssh_url":"git@github.com:robinkeunen/addons.git","clone_url":"https://github.com/robinkeunen/addons.git","svn_url":"https://github.com/robinkeunen/addons","homepage":null,"size":9113,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"9.0"}},"base":{"label":"robinkeunen:11.0","ref":"11.0","sha":"a796f99d38830cc008f1df7c424b154079eddfe5","user":{"login":"robinkeunen","id":3082119,"node_id":"MDQ6VXNlcjMwODIxMTk=","avatar_url":"https://avatars3.githubusercontent.com/u/3082119?v=4","gravatar_id":"","url":"https://api.github.com/users/robinkeunen","html_url":"https://github.com/robinkeunen","followers_url":"https://api.github.com/users/robinkeunen/followers","following_url":"https://api.github.com/users/robinkeunen/following{/other_user}","gists_url":"https://api.github.com/users/robinkeunen/gists{/gist_id}","starred_url":"https://api.github.com/users/robinkeunen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinkeunen/subscriptions","organizations_url":"https://api.github.com/users/robinkeunen/orgs","repos_url":"https://api.github.com/users/robinkeunen/repos","events_url":"https://api.github.com/users/robinkeunen/events{/privacy}","received_events_url":"https://api.github.com/users/robinkeunen/received_events","type":"User","site_admin":false},"repo":{"id":131998942,"node_id":"MDEwOlJlcG9zaXRvcnkxMzE5OTg5NDI=","name":"addons","full_name":"robinkeunen/addons","private":false,"owner":{"login":"robinkeunen","id":3082119,"node_id":"MDQ6VXNlcjMwODIxMTk=","avatar_url":"https://avatars3.githubusercontent.com/u/3082119?v=4","gravatar_id":"","url":"https://api.github.com/users/robinkeunen","html_url":"https://github.com/robinkeunen","followers_url":"https://api.github.com/users/robinkeunen/followers","following_url":"https://api.github.com/users/robinkeunen/following{/other_user}","gists_url":"https://api.github.com/users/robinkeunen/gists{/gist_id}","starred_url":"https://api.github.com/users/robinkeunen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinkeunen/subscriptions","organizations_url":"https://api.github.com/users/robinkeunen/orgs","repos_url":"https://api.github.com/users/robinkeunen/repos","events_url":"https://api.github.com/users/robinkeunen/events{/privacy}","received_events_url":"https://api.github.com/users/robinkeunen/received_events","type":"User","site_admin":false},"html_url":"https://github.com/robinkeunen/addons","description":null,"fork":true,"url":"https://api.github.com/repos/robinkeunen/addons","forks_url":"https://api.github.com/repos/robinkeunen/addons/forks","keys_url":"https://api.github.com/repos/robinkeunen/addons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robinkeunen/addons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robinkeunen/addons/teams","hooks_url":"https://api.github.com/repos/robinkeunen/addons/hooks","issue_events_url":"https://api.github.com/repos/robinkeunen/addons/issues/events{/number}","events_url":"https://api.github.com/repos/robinkeunen/addons/events","assignees_url":"https://api.github.com/repos/robinkeunen/addons/assignees{/user}","branches_url":"https://api.github.com/repos/robinkeunen/addons/branches{/branch}","tags_url":"https://api.github.com/repos/robinkeunen/addons/tags","blobs_url":"https://api.github.com/repos/robinkeunen/addons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robinkeunen/addons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robinkeunen/addons/git/refs{/sha}","trees_url":"https://api.github.com/repos/robinkeunen/addons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robinkeunen/addons/statuses/{sha}","languages_url":"https://api.github.com/repos/robinkeunen/addons/languages","stargazers_url":"https://api.github.com/repos/robinkeunen/addons/stargazers","contributors_url":"https://api.github.com/repos/robinkeunen/addons/contributors","subscribers_url":"https://api.github.com/repos/robinkeunen/addons/subscribers","subscription_url":"https://api.github.com/repos/robinkeunen/addons/subscription","commits_url":"https://api.github.com/repos/robinkeunen/addons/commits{/sha}","git_commits_url":"https://api.github.com/repos/robinkeunen/addons/git/commits{/sha}","comments_url":"https://api.github.com/repos/robinkeunen/addons/comments{/number}","issue_comment_url":"https://api.github.com/repos/robinkeunen/addons/issues/comments{/number}","contents_url":"https://api.github.com/repos/robinkeunen/addons/contents/{+path}","compare_url":"https://api.github.com/repos/robinkeunen/addons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robinkeunen/addons/merges","archive_url":"https://api.github.com/repos/robinkeunen/addons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robinkeunen/addons/downloads","issues_url":"https://api.github.com/repos/robinkeunen/addons/issues{/number}","pulls_url":"https://api.github.com/repos/robinkeunen/addons/pulls{/number}","milestones_url":"https://api.github.com/repos/robinkeunen/addons/milestones{/number}","notifications_url":"https://api.github.com/repos/robinkeunen/addons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robinkeunen/addons/labels{/name}","releases_url":"https://api.github.com/repos/robinkeunen/addons/releases{/id}","deployments_url":"https://api.github.com/repos/robinkeunen/addons/deployments","created_at":"2018-05-03T13:26:42Z","updated_at":"2018-12-03T09:41:09Z","pushed_at":"2018-12-12T08:47:11Z","git_url":"git://github.com/robinkeunen/addons.git","ssh_url":"git@github.com:robinkeunen/addons.git","clone_url":"https://github.com/robinkeunen/addons.git","svn_url":"https://github.com/robinkeunen/addons","homepage":null,"size":9113,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"9.0"}},"_links":{"self":{"href":"https://api.github.com/repos/robinkeunen/addons/pulls/1"},"html":{"href":"https://github.com/robinkeunen/addons/pull/1"},"issue":{"href":"https://api.github.com/repos/robinkeunen/addons/issues/1"},"comments":{"href":"https://api.github.com/repos/robinkeunen/addons/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/robinkeunen/addons/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/robinkeunen/addons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/robinkeunen/addons/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/robinkeunen/addons/statuses/387d4461f7274f231b73c32750971c9c487296af"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houssine78"}}