{"action":"created","comment":{"url":"https://api.github.com/repos/frappe/erpnext/pulls/comments/169540336","pull_request_review_id":98081102,"id":169540336,"diff_hunk":"@@ -53,6 +54,16 @@ def validate(self):\n \t\tself.flags.old_lead = self.lead_name\n \t\tvalidate_party_accounts(self)\n \t\tself.validate_credit_limit_on_change()\n+\t\tself.check_cgroup_or_terr_change()\n+\n+\tdef check_cgroup_or_terr_change(self):","path":"erpnext/selling/doctype/customer/customer.py","position":14,"original_position":14,"commit_id":"7d20db7ca7508caa081bf8fcb548fdcd28641bf6","original_commit_id":"7d20db7ca7508caa081bf8fcb548fdcd28641bf6","user":{"login":"rmehta","id":140076,"avatar_url":"https://avatars1.githubusercontent.com/u/140076?v=4","gravatar_id":"","url":"https://api.github.com/users/rmehta","html_url":"https://github.com/rmehta","followers_url":"https://api.github.com/users/rmehta/followers","following_url":"https://api.github.com/users/rmehta/following{/other_user}","gists_url":"https://api.github.com/users/rmehta/gists{/gist_id}","starred_url":"https://api.github.com/users/rmehta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmehta/subscriptions","organizations_url":"https://api.github.com/users/rmehta/orgs","repos_url":"https://api.github.com/users/rmehta/repos","events_url":"https://api.github.com/users/rmehta/events{/privacy}","received_events_url":"https://api.github.com/users/rmehta/received_events","type":"User","site_admin":false},"body":"never use abbreviations like this!!\r\n\r\nhttps://github.com/frappe/erpnext/wiki/Naming-Guidelines","created_at":"2018-02-21T05:48:17Z","updated_at":"2018-02-21T05:48:22Z","html_url":"https://github.com/frappe/erpnext/pull/13004#discussion_r169540336","pull_request_url":"https://api.github.com/repos/frappe/erpnext/pulls/13004","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/frappe/erpnext/pulls/comments/169540336"},"html":{"href":"https://github.com/frappe/erpnext/pull/13004#discussion_r169540336"},"pull_request":{"href":"https://api.github.com/repos/frappe/erpnext/pulls/13004"}}},"pull_request":{"url":"https://api.github.com/repos/frappe/erpnext/pulls/13004","id":170164709,"html_url":"https://github.com/frappe/erpnext/pull/13004","diff_url":"https://github.com/frappe/erpnext/pull/13004.diff","patch_url":"https://github.com/frappe/erpnext/pull/13004.patch","issue_url":"https://api.github.com/repos/frappe/erpnext/issues/13004","number":13004,"state":"open","locked":false,"title":"Update Territory & Customer Group across all transaction","user":{"login":"Zlash65","id":11695402,"avatar_url":"https://avatars0.githubusercontent.com/u/11695402?v=4","gravatar_id":"","url":"https://api.github.com/users/Zlash65","html_url":"https://github.com/Zlash65","followers_url":"https://api.github.com/users/Zlash65/followers","following_url":"https://api.github.com/users/Zlash65/following{/other_user}","gists_url":"https://api.github.com/users/Zlash65/gists{/gist_id}","starred_url":"https://api.github.com/users/Zlash65/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zlash65/subscriptions","organizations_url":"https://api.github.com/users/Zlash65/orgs","repos_url":"https://api.github.com/users/Zlash65/repos","events_url":"https://api.github.com/users/Zlash65/events{/privacy}","received_events_url":"https://api.github.com/users/Zlash65/received_events","type":"User","site_admin":false},"body":"![update-transaction](https://user-images.githubusercontent.com/11695402/36421227-b52cdfc2-165d-11e8-924b-ea401227b5c8.gif)\r\n\r\nIssue - https://github.com/frappe/erpnext/issues/10542","created_at":"2018-02-20T11:22:45Z","updated_at":"2018-02-21T05:48:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"075048cd4034f31ba78840fede4a6042fed0e80b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/frappe/erpnext/pulls/13004/commits","review_comments_url":"https://api.github.com/repos/frappe/erpnext/pulls/13004/comments","review_comment_url":"https://api.github.com/repos/frappe/erpnext/pulls/comments{/number}","comments_url":"https://api.github.com/repos/frappe/erpnext/issues/13004/comments","statuses_url":"https://api.github.com/repos/frappe/erpnext/statuses/7d20db7ca7508caa081bf8fcb548fdcd28641bf6","head":{"label":"Zlash65:update-transaction","ref":"update-transaction","sha":"7d20db7ca7508caa081bf8fcb548fdcd28641bf6","user":{"login":"Zlash65","id":11695402,"avatar_url":"https://avatars0.githubusercontent.com/u/11695402?v=4","gravatar_id":"","url":"https://api.github.com/users/Zlash65","html_url":"https://github.com/Zlash65","followers_url":"https://api.github.com/users/Zlash65/followers","following_url":"https://api.github.com/users/Zlash65/following{/other_user}","gists_url":"https://api.github.com/users/Zlash65/gists{/gist_id}","starred_url":"https://api.github.com/users/Zlash65/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zlash65/subscriptions","organizations_url":"https://api.github.com/users/Zlash65/orgs","repos_url":"https://api.github.com/users/Zlash65/repos","events_url":"https://api.github.com/users/Zlash65/events{/privacy}","received_events_url":"https://api.github.com/users/Zlash65/received_events","type":"User","site_admin":false},"repo":{"id":96340794,"name":"erpnext","full_name":"Zlash65/erpnext","owner":{"login":"Zlash65","id":11695402,"avatar_url":"https://avatars0.githubusercontent.com/u/11695402?v=4","gravatar_id":"","url":"https://api.github.com/users/Zlash65","html_url":"https://github.com/Zlash65","followers_url":"https://api.github.com/users/Zlash65/followers","following_url":"https://api.github.com/users/Zlash65/following{/other_user}","gists_url":"https://api.github.com/users/Zlash65/gists{/gist_id}","starred_url":"https://api.github.com/users/Zlash65/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zlash65/subscriptions","organizations_url":"https://api.github.com/users/Zlash65/orgs","repos_url":"https://api.github.com/users/Zlash65/repos","events_url":"https://api.github.com/users/Zlash65/events{/privacy}","received_events_url":"https://api.github.com/users/Zlash65/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Zlash65/erpnext","description":"Business Made Simple","fork":true,"url":"https://api.github.com/repos/Zlash65/erpnext","forks_url":"https://api.github.com/repos/Zlash65/erpnext/forks","keys_url":"https://api.github.com/repos/Zlash65/erpnext/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zlash65/erpnext/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zlash65/erpnext/teams","hooks_url":"https://api.github.com/repos/Zlash65/erpnext/hooks","issue_events_url":"https://api.github.com/repos/Zlash65/erpnext/issues/events{/number}","events_url":"https://api.github.com/repos/Zlash65/erpnext/events","assignees_url":"https://api.github.com/repos/Zlash65/erpnext/assignees{/user}","branches_url":"https://api.github.com/repos/Zlash65/erpnext/branches{/branch}","tags_url":"https://api.github.com/repos/Zlash65/erpnext/tags","blobs_url":"https://api.github.com/repos/Zlash65/erpnext/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zlash65/erpnext/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zlash65/erpnext/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zlash65/erpnext/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zlash65/erpnext/statuses/{sha}","languages_url":"https://api.github.com/repos/Zlash65/erpnext/languages","stargazers_url":"https://api.github.com/repos/Zlash65/erpnext/stargazers","contributors_url":"https://api.github.com/repos/Zlash65/erpnext/contributors","subscribers_url":"https://api.github.com/repos/Zlash65/erpnext/subscribers","subscription_url":"https://api.github.com/repos/Zlash65/erpnext/subscription","commits_url":"https://api.github.com/repos/Zlash65/erpnext/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zlash65/erpnext/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zlash65/erpnext/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zlash65/erpnext/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zlash65/erpnext/contents/{+path}","compare_url":"https://api.github.com/repos/Zlash65/erpnext/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zlash65/erpnext/merges","archive_url":"https://api.github.com/repos/Zlash65/erpnext/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zlash65/erpnext/downloads","issues_url":"https://api.github.com/repos/Zlash65/erpnext/issues{/number}","pulls_url":"https://api.github.com/repos/Zlash65/erpnext/pulls{/number}","milestones_url":"https://api.github.com/repos/Zlash65/erpnext/milestones{/number}","notifications_url":"https://api.github.com/repos/Zlash65/erpnext/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zlash65/erpnext/labels{/name}","releases_url":"https://api.github.com/repos/Zlash65/erpnext/releases{/id}","deployments_url":"https://api.github.com/repos/Zlash65/erpnext/deployments","created_at":"2017-07-05T16:43:39Z","updated_at":"2017-07-05T16:43:52Z","pushed_at":"2018-02-21T05:12:18Z","git_url":"git://github.com/Zlash65/erpnext.git","ssh_url":"git@github.com:Zlash65/erpnext.git","clone_url":"https://github.com/Zlash65/erpnext.git","svn_url":"https://github.com/Zlash65/erpnext","homepage":"http://erpnext.com","size":462599,"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":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"frappe:develop","ref":"develop","sha":"7c744acc49ea5e453d4c2d854be5e399481bd4ac","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":1864233,"name":"erpnext","full_name":"frappe/erpnext","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/erpnext","description":"📈 💰 🛒 Open Source ERP built for the web","fork":false,"url":"https://api.github.com/repos/frappe/erpnext","forks_url":"https://api.github.com/repos/frappe/erpnext/forks","keys_url":"https://api.github.com/repos/frappe/erpnext/keys{/key_id}","collaborators_url":"https://api.github.com/repos/frappe/erpnext/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/frappe/erpnext/teams","hooks_url":"https://api.github.com/repos/frappe/erpnext/hooks","issue_events_url":"https://api.github.com/repos/frappe/erpnext/issues/events{/number}","events_url":"https://api.github.com/repos/frappe/erpnext/events","assignees_url":"https://api.github.com/repos/frappe/erpnext/assignees{/user}","branches_url":"https://api.github.com/repos/frappe/erpnext/branches{/branch}","tags_url":"https://api.github.com/repos/frappe/erpnext/tags","blobs_url":"https://api.github.com/repos/frappe/erpnext/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/frappe/erpnext/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/frappe/erpnext/git/refs{/sha}","trees_url":"https://api.github.com/repos/frappe/erpnext/git/trees{/sha}","statuses_url":"https://api.github.com/repos/frappe/erpnext/statuses/{sha}","languages_url":"https://api.github.com/repos/frappe/erpnext/languages","stargazers_url":"https://api.github.com/repos/frappe/erpnext/stargazers","contributors_url":"https://api.github.com/repos/frappe/erpnext/contributors","subscribers_url":"https://api.github.com/repos/frappe/erpnext/subscribers","subscription_url":"https://api.github.com/repos/frappe/erpnext/subscription","commits_url":"https://api.github.com/repos/frappe/erpnext/commits{/sha}","git_commits_url":"https://api.github.com/repos/frappe/erpnext/git/commits{/sha}","comments_url":"https://api.github.com/repos/frappe/erpnext/comments{/number}","issue_comment_url":"https://api.github.com/repos/frappe/erpnext/issues/comments{/number}","contents_url":"https://api.github.com/repos/frappe/erpnext/contents/{+path}","compare_url":"https://api.github.com/repos/frappe/erpnext/compare/{base}...{head}","merges_url":"https://api.github.com/repos/frappe/erpnext/merges","archive_url":"https://api.github.com/repos/frappe/erpnext/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/frappe/erpnext/downloads","issues_url":"https://api.github.com/repos/frappe/erpnext/issues{/number}","pulls_url":"https://api.github.com/repos/frappe/erpnext/pulls{/number}","milestones_url":"https://api.github.com/repos/frappe/erpnext/milestones{/number}","notifications_url":"https://api.github.com/repos/frappe/erpnext/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/frappe/erpnext/labels{/name}","releases_url":"https://api.github.com/repos/frappe/erpnext/releases{/id}","deployments_url":"https://api.github.com/repos/frappe/erpnext/deployments","created_at":"2011-06-08T08:20:56Z","updated_at":"2018-02-20T21:23:53Z","pushed_at":"2018-02-21T05:43:34Z","git_url":"git://github.com/frappe/erpnext.git","ssh_url":"git@github.com:frappe/erpnext.git","clone_url":"https://github.com/frappe/erpnext.git","svn_url":"https://github.com/frappe/erpnext","homepage":"http://erpnext.com","size":461715,"stargazers_count":2853,"watchers_count":2853,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1478,"mirror_url":null,"archived":false,"open_issues_count":1308,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":1478,"open_issues":1308,"watchers":2853,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/frappe/erpnext/pulls/13004"},"html":{"href":"https://github.com/frappe/erpnext/pull/13004"},"issue":{"href":"https://api.github.com/repos/frappe/erpnext/issues/13004"},"comments":{"href":"https://api.github.com/repos/frappe/erpnext/issues/13004/comments"},"review_comments":{"href":"https://api.github.com/repos/frappe/erpnext/pulls/13004/comments"},"review_comment":{"href":"https://api.github.com/repos/frappe/erpnext/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/frappe/erpnext/pulls/13004/commits"},"statuses":{"href":"https://api.github.com/repos/frappe/erpnext/statuses/7d20db7ca7508caa081bf8fcb548fdcd28641bf6"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"rmehta"}}