{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/comments/72888188","id":72888188,"diff_hunk":"@@ -0,0 +1,11 @@\n+# coding: utf-8\n+from openerp.tests.common import TransactionCase\n+\n+\n+class TestHrTimesheet(TransactionCase):\n+    def test_hr_timesheet(self):\n+        self.env.cr.execute(\n+            \"SELECT line_id FROM hr_analytic_timesheet LIMIT 1\")\n+        line_id, = self.env.cr.fetchone()\n+        line = self.env['account.analytic.line'].browse(line_id)\n+        self.assertTrue(line.is_timesheet)","path":"addons/hr_timesheet/migrations/9.0.1.0/tests/test_hr_timesheet.py","position":11,"original_position":11,"commit_id":"14c7f7c70d699b845ef4b45ab0cdf5b6a6655906","original_commit_id":"14c7f7c70d699b845ef4b45ab0cdf5b6a6655906","user":{"login":"hbrunn","id":2563186,"avatar_url":"https://avatars.githubusercontent.com/u/2563186?v=3","gravatar_id":"","url":"https://api.github.com/users/hbrunn","html_url":"https://github.com/hbrunn","followers_url":"https://api.github.com/users/hbrunn/followers","following_url":"https://api.github.com/users/hbrunn/following{/other_user}","gists_url":"https://api.github.com/users/hbrunn/gists{/gist_id}","starred_url":"https://api.github.com/users/hbrunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbrunn/subscriptions","organizations_url":"https://api.github.com/users/hbrunn/orgs","repos_url":"https://api.github.com/users/hbrunn/repos","events_url":"https://api.github.com/users/hbrunn/events{/privacy}","received_events_url":"https://api.github.com/users/hbrunn/received_events","type":"User","site_admin":false},"body":"@StefanRijnhart the complication is mainly caused by your refusal to add the database files to the repository. If they would live in the repo, all of this would be doable in one PR","created_at":"2016-07-30T14:01:12Z","updated_at":"2016-07-30T14:01:12Z","html_url":"https://github.com/OCA/OpenUpgrade/pull/587#discussion_r72888188","pull_request_url":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/587","_links":{"self":{"href":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/comments/72888188"},"html":{"href":"https://github.com/OCA/OpenUpgrade/pull/587#discussion_r72888188"},"pull_request":{"href":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/587"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/587","id":79404254,"html_url":"https://github.com/OCA/OpenUpgrade/pull/587","diff_url":"https://github.com/OCA/OpenUpgrade/pull/587.diff","patch_url":"https://github.com/OCA/OpenUpgrade/pull/587.patch","issue_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/587","number":587,"state":"closed","locked":false,"title":"[FIX] Set is_timesheet on analytic lines","user":{"login":"StefanRijnhart","id":1033124,"avatar_url":"https://avatars.githubusercontent.com/u/1033124?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanRijnhart","html_url":"https://github.com/StefanRijnhart","followers_url":"https://api.github.com/users/StefanRijnhart/followers","following_url":"https://api.github.com/users/StefanRijnhart/following{/other_user}","gists_url":"https://api.github.com/users/StefanRijnhart/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanRijnhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanRijnhart/subscriptions","organizations_url":"https://api.github.com/users/StefanRijnhart/orgs","repos_url":"https://api.github.com/users/StefanRijnhart/repos","events_url":"https://api.github.com/users/StefanRijnhart/events{/privacy}","received_events_url":"https://api.github.com/users/StefanRijnhart/received_events","type":"User","site_admin":false},"body":"Setting the is_timesheet marker only for analytic lines that were linked to an actual timesheet line in 8.0. The previous solution would assign the marker to all analytic lines for any project that uses timesheets, but that setting 'use_timesheet' on analytic accounts does not preclude that other analytic lines are present.","created_at":"2016-07-29T18:38:23Z","updated_at":"2016-07-30T14:01:12Z","closed_at":"2016-07-30T13:37:28Z","merged_at":"2016-07-30T13:37:28Z","merge_commit_sha":"f630c7b5f6f452f64d4fd784260f7fcedba38105","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/OCA/OpenUpgrade/milestones/6","html_url":"https://github.com/OCA/OpenUpgrade/milestones/9.0","labels_url":"https://api.github.com/repos/OCA/OpenUpgrade/milestones/6/labels","id":1314129,"number":6,"title":"9.0","description":"","creator":{"login":"max3903","id":939952,"avatar_url":"https://avatars.githubusercontent.com/u/939952?v=3","gravatar_id":"","url":"https://api.github.com/users/max3903","html_url":"https://github.com/max3903","followers_url":"https://api.github.com/users/max3903/followers","following_url":"https://api.github.com/users/max3903/following{/other_user}","gists_url":"https://api.github.com/users/max3903/gists{/gist_id}","starred_url":"https://api.github.com/users/max3903/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max3903/subscriptions","organizations_url":"https://api.github.com/users/max3903/orgs","repos_url":"https://api.github.com/users/max3903/repos","events_url":"https://api.github.com/users/max3903/events{/privacy}","received_events_url":"https://api.github.com/users/max3903/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":73,"state":"open","created_at":"2015-09-18T21:46:44Z","updated_at":"2016-07-30T13:49:57Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/587/commits","review_comments_url":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/587/comments","review_comment_url":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/587/comments","statuses_url":"https://api.github.com/repos/OCA/OpenUpgrade/statuses/14c7f7c70d699b845ef4b45ab0cdf5b6a6655906","head":{"label":"StefanRijnhart:9.0-set_is_timesheet","ref":"9.0-set_is_timesheet","sha":"14c7f7c70d699b845ef4b45ab0cdf5b6a6655906","user":{"login":"StefanRijnhart","id":1033124,"avatar_url":"https://avatars.githubusercontent.com/u/1033124?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanRijnhart","html_url":"https://github.com/StefanRijnhart","followers_url":"https://api.github.com/users/StefanRijnhart/followers","following_url":"https://api.github.com/users/StefanRijnhart/following{/other_user}","gists_url":"https://api.github.com/users/StefanRijnhart/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanRijnhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanRijnhart/subscriptions","organizations_url":"https://api.github.com/users/StefanRijnhart/orgs","repos_url":"https://api.github.com/users/StefanRijnhart/repos","events_url":"https://api.github.com/users/StefanRijnhart/events{/privacy}","received_events_url":"https://api.github.com/users/StefanRijnhart/received_events","type":"User","site_admin":false},"repo":{"id":20320697,"name":"OpenUpgrade","full_name":"StefanRijnhart/OpenUpgrade","owner":{"login":"StefanRijnhart","id":1033124,"avatar_url":"https://avatars.githubusercontent.com/u/1033124?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanRijnhart","html_url":"https://github.com/StefanRijnhart","followers_url":"https://api.github.com/users/StefanRijnhart/followers","following_url":"https://api.github.com/users/StefanRijnhart/following{/other_user}","gists_url":"https://api.github.com/users/StefanRijnhart/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanRijnhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanRijnhart/subscriptions","organizations_url":"https://api.github.com/users/StefanRijnhart/orgs","repos_url":"https://api.github.com/users/StefanRijnhart/repos","events_url":"https://api.github.com/users/StefanRijnhart/events{/privacy}","received_events_url":"https://api.github.com/users/StefanRijnhart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/StefanRijnhart/OpenUpgrade","description":"Open source upgrade path for Odoo/OpenERP","fork":true,"url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade","forks_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/forks","keys_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/teams","hooks_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/hooks","issue_events_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/issues/events{/number}","events_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/events","assignees_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/assignees{/user}","branches_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/branches{/branch}","tags_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/tags","blobs_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/git/refs{/sha}","trees_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/statuses/{sha}","languages_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/languages","stargazers_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/stargazers","contributors_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/contributors","subscribers_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/subscribers","subscription_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/subscription","commits_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/commits{/sha}","git_commits_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/git/commits{/sha}","comments_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/comments{/number}","issue_comment_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/issues/comments{/number}","contents_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/contents/{+path}","compare_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/merges","archive_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/downloads","issues_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/issues{/number}","pulls_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/pulls{/number}","milestones_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/milestones{/number}","notifications_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/labels{/name}","releases_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/releases{/id}","deployments_url":"https://api.github.com/repos/StefanRijnhart/OpenUpgrade/deployments","created_at":"2014-05-30T07:26:39Z","updated_at":"2015-10-02T00:41:36Z","pushed_at":"2016-07-29T18:53:56Z","git_url":"git://github.com/StefanRijnhart/OpenUpgrade.git","ssh_url":"git@github.com:StefanRijnhart/OpenUpgrade.git","clone_url":"https://github.com/StefanRijnhart/OpenUpgrade.git","svn_url":"https://github.com/StefanRijnhart/OpenUpgrade","homepage":"https://doc.therp.nl/openupgrade","size":1026736,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"OCA:9.0","ref":"9.0","sha":"a77f4da6ef4d160a52d8273e24df41f8f51d34e8","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":19951562,"name":"OpenUpgrade","full_name":"OCA/OpenUpgrade","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/OpenUpgrade","description":"Open source upgrade path for Odoo/OpenERP","fork":false,"url":"https://api.github.com/repos/OCA/OpenUpgrade","forks_url":"https://api.github.com/repos/OCA/OpenUpgrade/forks","keys_url":"https://api.github.com/repos/OCA/OpenUpgrade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/OpenUpgrade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/OpenUpgrade/teams","hooks_url":"https://api.github.com/repos/OCA/OpenUpgrade/hooks","issue_events_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/OpenUpgrade/events","assignees_url":"https://api.github.com/repos/OCA/OpenUpgrade/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/OpenUpgrade/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/OpenUpgrade/tags","blobs_url":"https://api.github.com/repos/OCA/OpenUpgrade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/OpenUpgrade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/OpenUpgrade/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/OpenUpgrade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/OpenUpgrade/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/OpenUpgrade/languages","stargazers_url":"https://api.github.com/repos/OCA/OpenUpgrade/stargazers","contributors_url":"https://api.github.com/repos/OCA/OpenUpgrade/contributors","subscribers_url":"https://api.github.com/repos/OCA/OpenUpgrade/subscribers","subscription_url":"https://api.github.com/repos/OCA/OpenUpgrade/subscription","commits_url":"https://api.github.com/repos/OCA/OpenUpgrade/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/OpenUpgrade/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/OpenUpgrade/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/OpenUpgrade/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/OpenUpgrade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/OpenUpgrade/merges","archive_url":"https://api.github.com/repos/OCA/OpenUpgrade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/OpenUpgrade/downloads","issues_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/OpenUpgrade/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/OpenUpgrade/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/OpenUpgrade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/OpenUpgrade/labels{/name}","releases_url":"https://api.github.com/repos/OCA/OpenUpgrade/releases{/id}","deployments_url":"https://api.github.com/repos/OCA/OpenUpgrade/deployments","created_at":"2014-05-19T17:45:43Z","updated_at":"2016-07-27T12:07:43Z","pushed_at":"2016-07-30T13:45:35Z","git_url":"git://github.com/OCA/OpenUpgrade.git","ssh_url":"git@github.com:OCA/OpenUpgrade.git","clone_url":"https://github.com/OCA/OpenUpgrade.git","svn_url":"https://github.com/OCA/OpenUpgrade","homepage":"https://doc.therp.nl/openupgrade","size":1375390,"stargazers_count":143,"watchers_count":143,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":169,"mirror_url":null,"open_issues_count":21,"forks":169,"open_issues":21,"watchers":143,"default_branch":"9.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/587"},"html":{"href":"https://github.com/OCA/OpenUpgrade/pull/587"},"issue":{"href":"https://api.github.com/repos/OCA/OpenUpgrade/issues/587"},"comments":{"href":"https://api.github.com/repos/OCA/OpenUpgrade/issues/587/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/587/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/OpenUpgrade/pulls/587/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/OpenUpgrade/statuses/14c7f7c70d699b845ef4b45ab0cdf5b6a6655906"}}}}
{"actor":{"display_login":"hbrunn"}}