{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/hr/pulls/comments/35741781","id":35741781,"diff_hunk":"@@ -0,0 +1,115 @@\n+# -*- coding:utf-8 -*-\n+##############################################################################\n+#\n+#    Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>.\n+#    Copyright (C) 2014 initOS GmbH & Co. KG (<http://www.initos.com>).\n+#    Author Nikolina Todorova <nikolina.todorova@initos.com>\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 details.\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+\n+from openerp import models, fields, api, _\n+from datetime import date, datetime\n+from openerp.exceptions import ValidationError\n+\n+\n+class HrPublicHolidays(models.Model):\n+    _name = 'hr.holidays.public'\n+    _description = 'Public Holidays'\n+    _rec_name = 'year'","path":"hr_public_holidays/models/hr_public_holidays.py","position":31,"original_position":31,"commit_id":"36301e03afdfcabe898b9f53ef4de2a6be585764","original_commit_id":"36301e03afdfcabe898b9f53ef4de2a6be585764","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":"This rec_name is not enough for identifying a record. You should create a name_get method.","created_at":"2015-07-29T09:28:57Z","updated_at":"2015-07-29T09:28:57Z","html_url":"https://github.com/OCA/hr/pull/85#discussion_r35741781","pull_request_url":"https://api.github.com/repos/OCA/hr/pulls/85","_links":{"self":{"href":"https://api.github.com/repos/OCA/hr/pulls/comments/35741781"},"html":{"href":"https://github.com/OCA/hr/pull/85#discussion_r35741781"},"pull_request":{"href":"https://api.github.com/repos/OCA/hr/pulls/85"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/hr/pulls/85","id":32017359,"html_url":"https://github.com/OCA/hr/pull/85","diff_url":"https://github.com/OCA/hr/pull/85.diff","patch_url":"https://github.com/OCA/hr/pull/85.patch","issue_url":"https://api.github.com/repos/OCA/hr/issues/85","number":85,"state":"open","locked":false,"title":"ported hr_public_holidays to api 8","user":{"login":"grzekru","id":5862658,"avatar_url":"https://avatars.githubusercontent.com/u/5862658?v=3","gravatar_id":"","url":"https://api.github.com/users/grzekru","html_url":"https://github.com/grzekru","followers_url":"https://api.github.com/users/grzekru/followers","following_url":"https://api.github.com/users/grzekru/following{/other_user}","gists_url":"https://api.github.com/users/grzekru/gists{/gist_id}","starred_url":"https://api.github.com/users/grzekru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grzekru/subscriptions","organizations_url":"https://api.github.com/users/grzekru/orgs","repos_url":"https://api.github.com/users/grzekru/repos","events_url":"https://api.github.com/users/grzekru/events{/privacy}","received_events_url":"https://api.github.com/users/grzekru/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-26T13:34:17Z","updated_at":"2015-07-29T09:28:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8fcff5a7fb38a277630c871f67ed3ffbcf15a7f1","assignee":null,"milestone":{"url":"https://api.github.com/repos/OCA/hr/milestones/1","html_url":"https://github.com/OCA/hr/milestones/8.0","labels_url":"https://api.github.com/repos/OCA/hr/milestones/1/labels","id":832892,"number":1,"title":"8.0","description":null,"creator":{"login":"bwrsandman","id":1013356,"avatar_url":"https://avatars.githubusercontent.com/u/1013356?v=3","gravatar_id":"","url":"https://api.github.com/users/bwrsandman","html_url":"https://github.com/bwrsandman","followers_url":"https://api.github.com/users/bwrsandman/followers","following_url":"https://api.github.com/users/bwrsandman/following{/other_user}","gists_url":"https://api.github.com/users/bwrsandman/gists{/gist_id}","starred_url":"https://api.github.com/users/bwrsandman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwrsandman/subscriptions","organizations_url":"https://api.github.com/users/bwrsandman/orgs","repos_url":"https://api.github.com/users/bwrsandman/repos","events_url":"https://api.github.com/users/bwrsandman/events{/privacy}","received_events_url":"https://api.github.com/users/bwrsandman/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":17,"state":"open","created_at":"2014-10-20T15:33:04Z","updated_at":"2015-07-28T14:14:04Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/OCA/hr/pulls/85/commits","review_comments_url":"https://api.github.com/repos/OCA/hr/pulls/85/comments","review_comment_url":"https://api.github.com/repos/OCA/hr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/hr/issues/85/comments","statuses_url":"https://api.github.com/repos/OCA/hr/statuses/36301e03afdfcabe898b9f53ef4de2a6be585764","head":{"label":"macopedia:public_holidays_8","ref":"public_holidays_8","sha":"36301e03afdfcabe898b9f53ef4de2a6be585764","user":{"login":"macopedia","id":2519202,"avatar_url":"https://avatars.githubusercontent.com/u/2519202?v=3","gravatar_id":"","url":"https://api.github.com/users/macopedia","html_url":"https://github.com/macopedia","followers_url":"https://api.github.com/users/macopedia/followers","following_url":"https://api.github.com/users/macopedia/following{/other_user}","gists_url":"https://api.github.com/users/macopedia/gists{/gist_id}","starred_url":"https://api.github.com/users/macopedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macopedia/subscriptions","organizations_url":"https://api.github.com/users/macopedia/orgs","repos_url":"https://api.github.com/users/macopedia/repos","events_url":"https://api.github.com/users/macopedia/events{/privacy}","received_events_url":"https://api.github.com/users/macopedia/received_events","type":"Organization","site_admin":false},"repo":{"id":32853172,"name":"hr","full_name":"macopedia/hr","owner":{"login":"macopedia","id":2519202,"avatar_url":"https://avatars.githubusercontent.com/u/2519202?v=3","gravatar_id":"","url":"https://api.github.com/users/macopedia","html_url":"https://github.com/macopedia","followers_url":"https://api.github.com/users/macopedia/followers","following_url":"https://api.github.com/users/macopedia/following{/other_user}","gists_url":"https://api.github.com/users/macopedia/gists{/gist_id}","starred_url":"https://api.github.com/users/macopedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macopedia/subscriptions","organizations_url":"https://api.github.com/users/macopedia/orgs","repos_url":"https://api.github.com/users/macopedia/repos","events_url":"https://api.github.com/users/macopedia/events{/privacy}","received_events_url":"https://api.github.com/users/macopedia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/macopedia/hr","description":"Odoo Human Ressources Addons","fork":true,"url":"https://api.github.com/repos/macopedia/hr","forks_url":"https://api.github.com/repos/macopedia/hr/forks","keys_url":"https://api.github.com/repos/macopedia/hr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/macopedia/hr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/macopedia/hr/teams","hooks_url":"https://api.github.com/repos/macopedia/hr/hooks","issue_events_url":"https://api.github.com/repos/macopedia/hr/issues/events{/number}","events_url":"https://api.github.com/repos/macopedia/hr/events","assignees_url":"https://api.github.com/repos/macopedia/hr/assignees{/user}","branches_url":"https://api.github.com/repos/macopedia/hr/branches{/branch}","tags_url":"https://api.github.com/repos/macopedia/hr/tags","blobs_url":"https://api.github.com/repos/macopedia/hr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/macopedia/hr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/macopedia/hr/git/refs{/sha}","trees_url":"https://api.github.com/repos/macopedia/hr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/macopedia/hr/statuses/{sha}","languages_url":"https://api.github.com/repos/macopedia/hr/languages","stargazers_url":"https://api.github.com/repos/macopedia/hr/stargazers","contributors_url":"https://api.github.com/repos/macopedia/hr/contributors","subscribers_url":"https://api.github.com/repos/macopedia/hr/subscribers","subscription_url":"https://api.github.com/repos/macopedia/hr/subscription","commits_url":"https://api.github.com/repos/macopedia/hr/commits{/sha}","git_commits_url":"https://api.github.com/repos/macopedia/hr/git/commits{/sha}","comments_url":"https://api.github.com/repos/macopedia/hr/comments{/number}","issue_comment_url":"https://api.github.com/repos/macopedia/hr/issues/comments{/number}","contents_url":"https://api.github.com/repos/macopedia/hr/contents/{+path}","compare_url":"https://api.github.com/repos/macopedia/hr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/macopedia/hr/merges","archive_url":"https://api.github.com/repos/macopedia/hr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/macopedia/hr/downloads","issues_url":"https://api.github.com/repos/macopedia/hr/issues{/number}","pulls_url":"https://api.github.com/repos/macopedia/hr/pulls{/number}","milestones_url":"https://api.github.com/repos/macopedia/hr/milestones{/number}","notifications_url":"https://api.github.com/repos/macopedia/hr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/macopedia/hr/labels{/name}","releases_url":"https://api.github.com/repos/macopedia/hr/releases{/id}","created_at":"2015-03-25T08:58:11Z","updated_at":"2015-03-25T08:58:13Z","pushed_at":"2015-06-12T14:53:10Z","git_url":"git://github.com/macopedia/hr.git","ssh_url":"git@github.com:macopedia/hr.git","clone_url":"https://github.com/macopedia/hr.git","svn_url":"https://github.com/macopedia/hr","homepage":"","size":4899,"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":"7458a0d4b4db829adf263f90cdd8dd3f46e9280a","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":20891607,"name":"hr","full_name":"OCA/hr","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/hr","description":"Odoo Human Ressources Addons","fork":false,"url":"https://api.github.com/repos/OCA/hr","forks_url":"https://api.github.com/repos/OCA/hr/forks","keys_url":"https://api.github.com/repos/OCA/hr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/hr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/hr/teams","hooks_url":"https://api.github.com/repos/OCA/hr/hooks","issue_events_url":"https://api.github.com/repos/OCA/hr/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/hr/events","assignees_url":"https://api.github.com/repos/OCA/hr/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/hr/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/hr/tags","blobs_url":"https://api.github.com/repos/OCA/hr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/hr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/hr/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/hr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/hr/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/hr/languages","stargazers_url":"https://api.github.com/repos/OCA/hr/stargazers","contributors_url":"https://api.github.com/repos/OCA/hr/contributors","subscribers_url":"https://api.github.com/repos/OCA/hr/subscribers","subscription_url":"https://api.github.com/repos/OCA/hr/subscription","commits_url":"https://api.github.com/repos/OCA/hr/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/hr/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/hr/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/hr/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/hr/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/hr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/hr/merges","archive_url":"https://api.github.com/repos/OCA/hr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/hr/downloads","issues_url":"https://api.github.com/repos/OCA/hr/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/hr/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/hr/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/hr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/hr/labels{/name}","releases_url":"https://api.github.com/repos/OCA/hr/releases{/id}","created_at":"2014-06-16T16:15:34Z","updated_at":"2015-06-06T10:43:10Z","pushed_at":"2015-07-28T20:04:34Z","git_url":"git://github.com/OCA/hr.git","ssh_url":"git@github.com:OCA/hr.git","clone_url":"https://github.com/OCA/hr.git","svn_url":"https://github.com/OCA/hr","homepage":"","size":6631,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":19,"forks":49,"open_issues":19,"watchers":11,"default_branch":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/hr/pulls/85"},"html":{"href":"https://github.com/OCA/hr/pull/85"},"issue":{"href":"https://api.github.com/repos/OCA/hr/issues/85"},"comments":{"href":"https://api.github.com/repos/OCA/hr/issues/85/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/hr/pulls/85/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/hr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/hr/pulls/85/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/hr/statuses/36301e03afdfcabe898b9f53ef4de2a6be585764"}}}}