{"action":"created","comment":{"url":"https://api.github.com/repos/frappe/frappe/pulls/comments/135447469","pull_request_review_id":58859161,"id":135447469,"diff_hunk":"@@ -281,6 +281,19 @@ frappe.views.TreeView = Class.extend({\n \t\t\t}\n \t\t})\n \t},\n+\tprint_tree: function() {\n+\t\tif(!frappe.model.can_print(this.doctype)) {\n+\t\t\tfrappe.msgprint(__(\"You are not allowed to print this report\"));\n+\t\t\treturn false;\n+\t\t}\n+\t\tthis.tree.rootnode.load_all();","path":"frappe/public/js/frappe/views/treeview.js","position":9,"original_position":9,"commit_id":"c4c386bc530fc7e368eb68071b7a3422849bbb27","original_commit_id":"c4c386bc530fc7e368eb68071b7a3422849bbb27","user":{"login":"netchampfaris","id":9355208,"avatar_url":"https://avatars2.githubusercontent.com/u/9355208?v=4","gravatar_id":"","url":"https://api.github.com/users/netchampfaris","html_url":"https://github.com/netchampfaris","followers_url":"https://api.github.com/users/netchampfaris/followers","following_url":"https://api.github.com/users/netchampfaris/following{/other_user}","gists_url":"https://api.github.com/users/netchampfaris/gists{/gist_id}","starred_url":"https://api.github.com/users/netchampfaris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netchampfaris/subscriptions","organizations_url":"https://api.github.com/users/netchampfaris/orgs","repos_url":"https://api.github.com/users/netchampfaris/repos","events_url":"https://api.github.com/users/netchampfaris/events{/privacy}","received_events_url":"https://api.github.com/users/netchampfaris/received_events","type":"User","site_admin":false},"body":"I think we should let the user print what he sees. Don't expand all.","created_at":"2017-08-28T06:07:05Z","updated_at":"2017-08-28T06:09:20Z","html_url":"https://github.com/frappe/frappe/pull/3980#discussion_r135447469","pull_request_url":"https://api.github.com/repos/frappe/frappe/pulls/3980","_links":{"self":{"href":"https://api.github.com/repos/frappe/frappe/pulls/comments/135447469"},"html":{"href":"https://github.com/frappe/frappe/pull/3980#discussion_r135447469"},"pull_request":{"href":"https://api.github.com/repos/frappe/frappe/pulls/3980"}}},"pull_request":{"url":"https://api.github.com/repos/frappe/frappe/pulls/3980","id":137172751,"html_url":"https://github.com/frappe/frappe/pull/3980","diff_url":"https://github.com/frappe/frappe/pull/3980.diff","patch_url":"https://github.com/frappe/frappe/pull/3980.patch","issue_url":"https://api.github.com/repos/frappe/frappe/issues/3980","number":3980,"state":"open","locked":false,"title":"Warehouse tree : print option.","user":{"login":"ashwinisave35","id":28141909,"avatar_url":"https://avatars0.githubusercontent.com/u/28141909?v=4","gravatar_id":"","url":"https://api.github.com/users/ashwinisave35","html_url":"https://github.com/ashwinisave35","followers_url":"https://api.github.com/users/ashwinisave35/followers","following_url":"https://api.github.com/users/ashwinisave35/following{/other_user}","gists_url":"https://api.github.com/users/ashwinisave35/gists{/gist_id}","starred_url":"https://api.github.com/users/ashwinisave35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashwinisave35/subscriptions","organizations_url":"https://api.github.com/users/ashwinisave35/orgs","repos_url":"https://api.github.com/users/ashwinisave35/repos","events_url":"https://api.github.com/users/ashwinisave35/events{/privacy}","received_events_url":"https://api.github.com/users/ashwinisave35/received_events","type":"User","site_admin":false},"body":"Added print option in warehouse tree view menu.\r\n\r\n![screen shot 2017-08-23 at 3 06 56 pm](https://user-images.githubusercontent.com/28141909/29609512-13505958-8815-11e7-952d-b066feeb7cff.png)\r\n\r\n\r\nPrint page:\r\n\r\n![screen shot 2017-08-23 at 12 22 30 am](https://user-images.githubusercontent.com/28141909/29609479-f7bc42b0-8814-11e7-914d-7b3fc6fa161a.png)\r\n","created_at":"2017-08-23T09:40:14Z","updated_at":"2017-08-28T06:09:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3525a91f3aad18e6e4b7b1024c750214d241771c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/frappe/frappe/pulls/3980/commits","review_comments_url":"https://api.github.com/repos/frappe/frappe/pulls/3980/comments","review_comment_url":"https://api.github.com/repos/frappe/frappe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/frappe/frappe/issues/3980/comments","statuses_url":"https://api.github.com/repos/frappe/frappe/statuses/c4c386bc530fc7e368eb68071b7a3422849bbb27","head":{"label":"ashwinisave35:warehouse_tree_print","ref":"warehouse_tree_print","sha":"c4c386bc530fc7e368eb68071b7a3422849bbb27","user":{"login":"ashwinisave35","id":28141909,"avatar_url":"https://avatars0.githubusercontent.com/u/28141909?v=4","gravatar_id":"","url":"https://api.github.com/users/ashwinisave35","html_url":"https://github.com/ashwinisave35","followers_url":"https://api.github.com/users/ashwinisave35/followers","following_url":"https://api.github.com/users/ashwinisave35/following{/other_user}","gists_url":"https://api.github.com/users/ashwinisave35/gists{/gist_id}","starred_url":"https://api.github.com/users/ashwinisave35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashwinisave35/subscriptions","organizations_url":"https://api.github.com/users/ashwinisave35/orgs","repos_url":"https://api.github.com/users/ashwinisave35/repos","events_url":"https://api.github.com/users/ashwinisave35/events{/privacy}","received_events_url":"https://api.github.com/users/ashwinisave35/received_events","type":"User","site_admin":false},"repo":{"id":89913915,"name":"frappe","full_name":"ashwinisave35/frappe","owner":{"login":"ashwinisave35","id":28141909,"avatar_url":"https://avatars0.githubusercontent.com/u/28141909?v=4","gravatar_id":"","url":"https://api.github.com/users/ashwinisave35","html_url":"https://github.com/ashwinisave35","followers_url":"https://api.github.com/users/ashwinisave35/followers","following_url":"https://api.github.com/users/ashwinisave35/following{/other_user}","gists_url":"https://api.github.com/users/ashwinisave35/gists{/gist_id}","starred_url":"https://api.github.com/users/ashwinisave35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashwinisave35/subscriptions","organizations_url":"https://api.github.com/users/ashwinisave35/orgs","repos_url":"https://api.github.com/users/ashwinisave35/repos","events_url":"https://api.github.com/users/ashwinisave35/events{/privacy}","received_events_url":"https://api.github.com/users/ashwinisave35/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ashwinisave35/frappe","description":"Full Stack Web Framework in Python & JS. Used to build ERPNext","fork":true,"url":"https://api.github.com/repos/ashwinisave35/frappe","forks_url":"https://api.github.com/repos/ashwinisave35/frappe/forks","keys_url":"https://api.github.com/repos/ashwinisave35/frappe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ashwinisave35/frappe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ashwinisave35/frappe/teams","hooks_url":"https://api.github.com/repos/ashwinisave35/frappe/hooks","issue_events_url":"https://api.github.com/repos/ashwinisave35/frappe/issues/events{/number}","events_url":"https://api.github.com/repos/ashwinisave35/frappe/events","assignees_url":"https://api.github.com/repos/ashwinisave35/frappe/assignees{/user}","branches_url":"https://api.github.com/repos/ashwinisave35/frappe/branches{/branch}","tags_url":"https://api.github.com/repos/ashwinisave35/frappe/tags","blobs_url":"https://api.github.com/repos/ashwinisave35/frappe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ashwinisave35/frappe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ashwinisave35/frappe/git/refs{/sha}","trees_url":"https://api.github.com/repos/ashwinisave35/frappe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ashwinisave35/frappe/statuses/{sha}","languages_url":"https://api.github.com/repos/ashwinisave35/frappe/languages","stargazers_url":"https://api.github.com/repos/ashwinisave35/frappe/stargazers","contributors_url":"https://api.github.com/repos/ashwinisave35/frappe/contributors","subscribers_url":"https://api.github.com/repos/ashwinisave35/frappe/subscribers","subscription_url":"https://api.github.com/repos/ashwinisave35/frappe/subscription","commits_url":"https://api.github.com/repos/ashwinisave35/frappe/commits{/sha}","git_commits_url":"https://api.github.com/repos/ashwinisave35/frappe/git/commits{/sha}","comments_url":"https://api.github.com/repos/ashwinisave35/frappe/comments{/number}","issue_comment_url":"https://api.github.com/repos/ashwinisave35/frappe/issues/comments{/number}","contents_url":"https://api.github.com/repos/ashwinisave35/frappe/contents/{+path}","compare_url":"https://api.github.com/repos/ashwinisave35/frappe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ashwinisave35/frappe/merges","archive_url":"https://api.github.com/repos/ashwinisave35/frappe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ashwinisave35/frappe/downloads","issues_url":"https://api.github.com/repos/ashwinisave35/frappe/issues{/number}","pulls_url":"https://api.github.com/repos/ashwinisave35/frappe/pulls{/number}","milestones_url":"https://api.github.com/repos/ashwinisave35/frappe/milestones{/number}","notifications_url":"https://api.github.com/repos/ashwinisave35/frappe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ashwinisave35/frappe/labels{/name}","releases_url":"https://api.github.com/repos/ashwinisave35/frappe/releases{/id}","deployments_url":"https://api.github.com/repos/ashwinisave35/frappe/deployments","created_at":"2017-05-01T10:03:05Z","updated_at":"2017-05-01T10:03:11Z","pushed_at":"2017-08-24T10:15:10Z","git_url":"git://github.com/ashwinisave35/frappe.git","ssh_url":"git@github.com:ashwinisave35/frappe.git","clone_url":"https://github.com/ashwinisave35/frappe.git","svn_url":"https://github.com/ashwinisave35/frappe","homepage":"http://frappe.io","size":112694,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"frappe:develop","ref":"develop","sha":"d5c9ad35b702d001a68547c2556ebc89c4dfee34","user":{"login":"frappe","id":836974,"avatar_url":"https://avatars2.githubusercontent.com/u/836974?v=4","gravatar_id":"","url":"https://api.github.com/users/frappe","html_url":"https://github.com/frappe","followers_url":"https://api.github.com/users/frappe/followers","following_url":"https://api.github.com/users/frappe/following{/other_user}","gists_url":"https://api.github.com/users/frappe/gists{/gist_id}","starred_url":"https://api.github.com/users/frappe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frappe/subscriptions","organizations_url":"https://api.github.com/users/frappe/orgs","repos_url":"https://api.github.com/users/frappe/repos","events_url":"https://api.github.com/users/frappe/events{/privacy}","received_events_url":"https://api.github.com/users/frappe/received_events","type":"Organization","site_admin":false},"repo":{"id":1864194,"name":"frappe","full_name":"frappe/frappe","owner":{"login":"frappe","id":836974,"avatar_url":"https://avatars2.githubusercontent.com/u/836974?v=4","gravatar_id":"","url":"https://api.github.com/users/frappe","html_url":"https://github.com/frappe","followers_url":"https://api.github.com/users/frappe/followers","following_url":"https://api.github.com/users/frappe/following{/other_user}","gists_url":"https://api.github.com/users/frappe/gists{/gist_id}","starred_url":"https://api.github.com/users/frappe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frappe/subscriptions","organizations_url":"https://api.github.com/users/frappe/orgs","repos_url":"https://api.github.com/users/frappe/repos","events_url":"https://api.github.com/users/frappe/events{/privacy}","received_events_url":"https://api.github.com/users/frappe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/frappe/frappe","description":"Full Stack Web Framework in Python & JS. Used to build ERPNext","fork":false,"url":"https://api.github.com/repos/frappe/frappe","forks_url":"https://api.github.com/repos/frappe/frappe/forks","keys_url":"https://api.github.com/repos/frappe/frappe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/frappe/frappe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/frappe/frappe/teams","hooks_url":"https://api.github.com/repos/frappe/frappe/hooks","issue_events_url":"https://api.github.com/repos/frappe/frappe/issues/events{/number}","events_url":"https://api.github.com/repos/frappe/frappe/events","assignees_url":"https://api.github.com/repos/frappe/frappe/assignees{/user}","branches_url":"https://api.github.com/repos/frappe/frappe/branches{/branch}","tags_url":"https://api.github.com/repos/frappe/frappe/tags","blobs_url":"https://api.github.com/repos/frappe/frappe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/frappe/frappe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/frappe/frappe/git/refs{/sha}","trees_url":"https://api.github.com/repos/frappe/frappe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/frappe/frappe/statuses/{sha}","languages_url":"https://api.github.com/repos/frappe/frappe/languages","stargazers_url":"https://api.github.com/repos/frappe/frappe/stargazers","contributors_url":"https://api.github.com/repos/frappe/frappe/contributors","subscribers_url":"https://api.github.com/repos/frappe/frappe/subscribers","subscription_url":"https://api.github.com/repos/frappe/frappe/subscription","commits_url":"https://api.github.com/repos/frappe/frappe/commits{/sha}","git_commits_url":"https://api.github.com/repos/frappe/frappe/git/commits{/sha}","comments_url":"https://api.github.com/repos/frappe/frappe/comments{/number}","issue_comment_url":"https://api.github.com/repos/frappe/frappe/issues/comments{/number}","contents_url":"https://api.github.com/repos/frappe/frappe/contents/{+path}","compare_url":"https://api.github.com/repos/frappe/frappe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/frappe/frappe/merges","archive_url":"https://api.github.com/repos/frappe/frappe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/frappe/frappe/downloads","issues_url":"https://api.github.com/repos/frappe/frappe/issues{/number}","pulls_url":"https://api.github.com/repos/frappe/frappe/pulls{/number}","milestones_url":"https://api.github.com/repos/frappe/frappe/milestones{/number}","notifications_url":"https://api.github.com/repos/frappe/frappe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/frappe/frappe/labels{/name}","releases_url":"https://api.github.com/repos/frappe/frappe/releases{/id}","deployments_url":"https://api.github.com/repos/frappe/frappe/deployments","created_at":"2011-06-08T08:14:16Z","updated_at":"2017-08-27T07:29:51Z","pushed_at":"2017-08-28T06:08:42Z","git_url":"git://github.com/frappe/frappe.git","ssh_url":"git@github.com:frappe/frappe.git","clone_url":"https://github.com/frappe/frappe.git","svn_url":"https://github.com/frappe/frappe","homepage":"http://frappe.io","size":113474,"stargazers_count":656,"watchers_count":656,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":538,"mirror_url":null,"open_issues_count":220,"forks":538,"open_issues":220,"watchers":656,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/frappe/frappe/pulls/3980"},"html":{"href":"https://github.com/frappe/frappe/pull/3980"},"issue":{"href":"https://api.github.com/repos/frappe/frappe/issues/3980"},"comments":{"href":"https://api.github.com/repos/frappe/frappe/issues/3980/comments"},"review_comments":{"href":"https://api.github.com/repos/frappe/frappe/pulls/3980/comments"},"review_comment":{"href":"https://api.github.com/repos/frappe/frappe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/frappe/frappe/pulls/3980/commits"},"statuses":{"href":"https://api.github.com/repos/frappe/frappe/statuses/c4c386bc530fc7e368eb68071b7a3422849bbb27"}}}}
{"actor":{"display_login":"netchampfaris"}}