{"action":"created","comment":{"url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/pulls/comments/205033527","pull_request_review_id":140220050,"id":205033527,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTAzMzUyNw==","diff_hunk":"@@ -0,0 +1,32 @@\n+# -*- coding: utf-8 -*-\n+##############################################################################\n+#\n+#    Copyright (C) 2018 Compassion CH (http://www.compassion.ch)\n+#    Releasing children from poverty in Jesus' name\n+#    @author: Nathan Fluckiger <nathan.fluckiger@hotmail.ch>\n+#\n+#    The licence is in the file __manifest__.py\n+#\n+##############################################################################\n+from odoo import models, api\n+\n+\n+class EventCompassion(models.Model):\n+\n+    _inherit = 'crm.event.compassion'\n+\n+    @api.model\n+    def create(self, vals):\n+        event = super(EventCompassion, self).create(vals)\n+        for NewEvent in self:\n+            if NewEvent.campaign_id is not None:\n+                NewEvent.analytic_id.campaign_id = NewEvent.campaign_id\n+        return event\n+\n+    @api.multi\n+    def write(self, vals):\n+        event = super(EventCompassion, self).write(vals)\n+        for NewEvent in self:","path":"mass_mailing_switzerland/models/crm_event_compassion.py","position":29,"original_position":29,"commit_id":"f1851fb14c66f85ee2de56db2bf3c7f7aabe79c9","original_commit_id":"f1851fb14c66f85ee2de56db2bf3c7f7aabe79c9","user":{"login":"ecino","id":8435180,"node_id":"MDQ6VXNlcjg0MzUxODA=","avatar_url":"https://avatars0.githubusercontent.com/u/8435180?v=4","gravatar_id":"","url":"https://api.github.com/users/ecino","html_url":"https://github.com/ecino","followers_url":"https://api.github.com/users/ecino/followers","following_url":"https://api.github.com/users/ecino/following{/other_user}","gists_url":"https://api.github.com/users/ecino/gists{/gist_id}","starred_url":"https://api.github.com/users/ecino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecino/subscriptions","organizations_url":"https://api.github.com/users/ecino/orgs","repos_url":"https://api.github.com/users/ecino/repos","events_url":"https://api.github.com/users/ecino/events{/privacy}","received_events_url":"https://api.github.com/users/ecino/received_events","type":"User","site_admin":false},"body":"`new_event`","created_at":"2018-07-25T09:03:38Z","updated_at":"2018-07-25T09:33:40Z","html_url":"https://github.com/CompassionCH/compassion-switzerland/pull/563#discussion_r205033527","pull_request_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/pulls/563","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/CompassionCH/compassion-switzerland/pulls/comments/205033527"},"html":{"href":"https://github.com/CompassionCH/compassion-switzerland/pull/563#discussion_r205033527"},"pull_request":{"href":"https://api.github.com/repos/CompassionCH/compassion-switzerland/pulls/563"}}},"pull_request":{"url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/pulls/563","id":203738697,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzNzM4Njk3","html_url":"https://github.com/CompassionCH/compassion-switzerland/pull/563","diff_url":"https://github.com/CompassionCH/compassion-switzerland/pull/563.diff","patch_url":"https://github.com/CompassionCH/compassion-switzerland/pull/563.patch","issue_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/issues/563","number":563,"state":"open","locked":false,"title":"CO-1892 Update the CRM stats","user":{"login":"nfluckiger","id":29856302,"node_id":"MDQ6VXNlcjI5ODU2MzAy","avatar_url":"https://avatars3.githubusercontent.com/u/29856302?v=4","gravatar_id":"","url":"https://api.github.com/users/nfluckiger","html_url":"https://github.com/nfluckiger","followers_url":"https://api.github.com/users/nfluckiger/followers","following_url":"https://api.github.com/users/nfluckiger/following{/other_user}","gists_url":"https://api.github.com/users/nfluckiger/gists{/gist_id}","starred_url":"https://api.github.com/users/nfluckiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfluckiger/subscriptions","organizations_url":"https://api.github.com/users/nfluckiger/orgs","repos_url":"https://api.github.com/users/nfluckiger/repos","events_url":"https://api.github.com/users/nfluckiger/events{/privacy}","received_events_url":"https://api.github.com/users/nfluckiger/received_events","type":"User","site_admin":false},"body":"Add link between different stats object","created_at":"2018-07-25T06:56:10Z","updated_at":"2018-07-25T09:33:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88f34106d74e18c77e5c2f6aac6813c1ce6a7c76","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/pulls/563/commits","review_comments_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/pulls/563/comments","review_comment_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/issues/563/comments","statuses_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/statuses/f1851fb14c66f85ee2de56db2bf3c7f7aabe79c9","head":{"label":"nfluckiger:10.0","ref":"10.0","sha":"f1851fb14c66f85ee2de56db2bf3c7f7aabe79c9","user":{"login":"nfluckiger","id":29856302,"node_id":"MDQ6VXNlcjI5ODU2MzAy","avatar_url":"https://avatars3.githubusercontent.com/u/29856302?v=4","gravatar_id":"","url":"https://api.github.com/users/nfluckiger","html_url":"https://github.com/nfluckiger","followers_url":"https://api.github.com/users/nfluckiger/followers","following_url":"https://api.github.com/users/nfluckiger/following{/other_user}","gists_url":"https://api.github.com/users/nfluckiger/gists{/gist_id}","starred_url":"https://api.github.com/users/nfluckiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfluckiger/subscriptions","organizations_url":"https://api.github.com/users/nfluckiger/orgs","repos_url":"https://api.github.com/users/nfluckiger/repos","events_url":"https://api.github.com/users/nfluckiger/events{/privacy}","received_events_url":"https://api.github.com/users/nfluckiger/received_events","type":"User","site_admin":false},"repo":{"id":96089353,"node_id":"MDEwOlJlcG9zaXRvcnk5NjA4OTM1Mw==","name":"compassion-switzerland","full_name":"nfluckiger/compassion-switzerland","owner":{"login":"nfluckiger","id":29856302,"node_id":"MDQ6VXNlcjI5ODU2MzAy","avatar_url":"https://avatars3.githubusercontent.com/u/29856302?v=4","gravatar_id":"","url":"https://api.github.com/users/nfluckiger","html_url":"https://github.com/nfluckiger","followers_url":"https://api.github.com/users/nfluckiger/followers","following_url":"https://api.github.com/users/nfluckiger/following{/other_user}","gists_url":"https://api.github.com/users/nfluckiger/gists{/gist_id}","starred_url":"https://api.github.com/users/nfluckiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfluckiger/subscriptions","organizations_url":"https://api.github.com/users/nfluckiger/orgs","repos_url":"https://api.github.com/users/nfluckiger/repos","events_url":"https://api.github.com/users/nfluckiger/events{/privacy}","received_events_url":"https://api.github.com/users/nfluckiger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nfluckiger/compassion-switzerland","description":"Odoo modules specific for Compassion Switzerland","fork":true,"url":"https://api.github.com/repos/nfluckiger/compassion-switzerland","forks_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/forks","keys_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/teams","hooks_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/hooks","issue_events_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/issues/events{/number}","events_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/events","assignees_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/assignees{/user}","branches_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/branches{/branch}","tags_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/tags","blobs_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/git/refs{/sha}","trees_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/statuses/{sha}","languages_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/languages","stargazers_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/stargazers","contributors_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/contributors","subscribers_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/subscribers","subscription_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/subscription","commits_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/commits{/sha}","git_commits_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/git/commits{/sha}","comments_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/comments{/number}","issue_comment_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/issues/comments{/number}","contents_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/contents/{+path}","compare_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/merges","archive_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/downloads","issues_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/issues{/number}","pulls_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/pulls{/number}","milestones_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/milestones{/number}","notifications_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/labels{/name}","releases_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/releases{/id}","deployments_url":"https://api.github.com/repos/nfluckiger/compassion-switzerland/deployments","created_at":"2017-07-03T08:40:24Z","updated_at":"2017-07-03T08:40:26Z","pushed_at":"2018-07-25T06:45:58Z","git_url":"git://github.com/nfluckiger/compassion-switzerland.git","ssh_url":"git@github.com:nfluckiger/compassion-switzerland.git","clone_url":"https://github.com/nfluckiger/compassion-switzerland.git","svn_url":"https://github.com/nfluckiger/compassion-switzerland","homepage":"","size":16886,"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":0,"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":0,"watchers":0,"default_branch":"8.0"}},"base":{"label":"CompassionCH:devel","ref":"devel","sha":"36deb1b445ba631666a0e4870f4e46c566d3ea78","user":{"login":"CompassionCH","id":8435213,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg0MzUyMTM=","avatar_url":"https://avatars1.githubusercontent.com/u/8435213?v=4","gravatar_id":"","url":"https://api.github.com/users/CompassionCH","html_url":"https://github.com/CompassionCH","followers_url":"https://api.github.com/users/CompassionCH/followers","following_url":"https://api.github.com/users/CompassionCH/following{/other_user}","gists_url":"https://api.github.com/users/CompassionCH/gists{/gist_id}","starred_url":"https://api.github.com/users/CompassionCH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CompassionCH/subscriptions","organizations_url":"https://api.github.com/users/CompassionCH/orgs","repos_url":"https://api.github.com/users/CompassionCH/repos","events_url":"https://api.github.com/users/CompassionCH/events{/privacy}","received_events_url":"https://api.github.com/users/CompassionCH/received_events","type":"Organization","site_admin":false},"repo":{"id":31906068,"node_id":"MDEwOlJlcG9zaXRvcnkzMTkwNjA2OA==","name":"compassion-switzerland","full_name":"CompassionCH/compassion-switzerland","owner":{"login":"CompassionCH","id":8435213,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg0MzUyMTM=","avatar_url":"https://avatars1.githubusercontent.com/u/8435213?v=4","gravatar_id":"","url":"https://api.github.com/users/CompassionCH","html_url":"https://github.com/CompassionCH","followers_url":"https://api.github.com/users/CompassionCH/followers","following_url":"https://api.github.com/users/CompassionCH/following{/other_user}","gists_url":"https://api.github.com/users/CompassionCH/gists{/gist_id}","starred_url":"https://api.github.com/users/CompassionCH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CompassionCH/subscriptions","organizations_url":"https://api.github.com/users/CompassionCH/orgs","repos_url":"https://api.github.com/users/CompassionCH/repos","events_url":"https://api.github.com/users/CompassionCH/events{/privacy}","received_events_url":"https://api.github.com/users/CompassionCH/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CompassionCH/compassion-switzerland","description":"Odoo modules specific for Compassion Switzerland","fork":false,"url":"https://api.github.com/repos/CompassionCH/compassion-switzerland","forks_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/forks","keys_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/teams","hooks_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/hooks","issue_events_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/issues/events{/number}","events_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/events","assignees_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/assignees{/user}","branches_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/branches{/branch}","tags_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/tags","blobs_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/git/refs{/sha}","trees_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/statuses/{sha}","languages_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/languages","stargazers_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/stargazers","contributors_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/contributors","subscribers_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/subscribers","subscription_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/subscription","commits_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/commits{/sha}","git_commits_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/git/commits{/sha}","comments_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/comments{/number}","issue_comment_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/issues/comments{/number}","contents_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/contents/{+path}","compare_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/merges","archive_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/downloads","issues_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/issues{/number}","pulls_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/pulls{/number}","milestones_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/milestones{/number}","notifications_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/labels{/name}","releases_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/releases{/id}","deployments_url":"https://api.github.com/repos/CompassionCH/compassion-switzerland/deployments","created_at":"2015-03-09T15:24:10Z","updated_at":"2018-07-24T09:19:28Z","pushed_at":"2018-07-25T08:57:51Z","git_url":"git://github.com/CompassionCH/compassion-switzerland.git","ssh_url":"git@github.com:CompassionCH/compassion-switzerland.git","clone_url":"https://github.com/CompassionCH/compassion-switzerland.git","svn_url":"https://github.com/CompassionCH/compassion-switzerland","homepage":"","size":16891,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"archived":false,"open_issues_count":2,"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":19,"open_issues":2,"watchers":2,"default_branch":"10.0"}},"_links":{"self":{"href":"https://api.github.com/repos/CompassionCH/compassion-switzerland/pulls/563"},"html":{"href":"https://github.com/CompassionCH/compassion-switzerland/pull/563"},"issue":{"href":"https://api.github.com/repos/CompassionCH/compassion-switzerland/issues/563"},"comments":{"href":"https://api.github.com/repos/CompassionCH/compassion-switzerland/issues/563/comments"},"review_comments":{"href":"https://api.github.com/repos/CompassionCH/compassion-switzerland/pulls/563/comments"},"review_comment":{"href":"https://api.github.com/repos/CompassionCH/compassion-switzerland/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CompassionCH/compassion-switzerland/pulls/563/commits"},"statuses":{"href":"https://api.github.com/repos/CompassionCH/compassion-switzerland/statuses/f1851fb14c66f85ee2de56db2bf3c7f7aabe79c9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ecino"}}