{"action":"created","issue":{"url":"https://api.github.com/repos/frappe/erpnext/issues/4044","labels_url":"https://api.github.com/repos/frappe/erpnext/issues/4044/labels{/name}","comments_url":"https://api.github.com/repos/frappe/erpnext/issues/4044/comments","events_url":"https://api.github.com/repos/frappe/erpnext/issues/4044/events","html_url":"https://github.com/frappe/erpnext/issues/4044","id":107474260,"number":4044,"title":"Error on adding role to Page","user":{"login":"Nitin-HMT","id":14542511,"avatar_url":"https://avatars.githubusercontent.com/u/14542511?v=3","gravatar_id":"","url":"https://api.github.com/users/Nitin-HMT","html_url":"https://github.com/Nitin-HMT","followers_url":"https://api.github.com/users/Nitin-HMT/followers","following_url":"https://api.github.com/users/Nitin-HMT/following{/other_user}","gists_url":"https://api.github.com/users/Nitin-HMT/gists{/gist_id}","starred_url":"https://api.github.com/users/Nitin-HMT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nitin-HMT/subscriptions","organizations_url":"https://api.github.com/users/Nitin-HMT/orgs","repos_url":"https://api.github.com/users/Nitin-HMT/repos","events_url":"https://api.github.com/users/Nitin-HMT/events{/privacy}","received_events_url":"https://api.github.com/users/Nitin-HMT/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-21T09:23:45Z","updated_at":"2015-09-22T09:15:49Z","closed_at":"2015-09-22T09:15:49Z","body":"Hi,\r\n\r\nI am trying to give a new role access to the POS page, on click of save I am getting the following error:\r\nTraceback (innermost last):\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/desk/form/save.py\", line 18, in savedocs\r\n    doc.save()\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/model/document.py\", line 225, in save\r\n    self.run_before_save_methods()\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/model/document.py\", line 569, in run_before_save_methods\r\n    self.run_method(\"validate\")\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/model/document.py\", line 531, in run_method\r\n    return Document.hook(fn)(self, *args, **kwargs)\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/model/document.py\", line 663, in composer\r\n    return composed(self, method, *args, **kwargs)\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/model/document.py\", line 646, in runner\r\n    add_to_return_value(self, fn(self, *args, **kwargs))\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/model/document.py\", line 525, in \r\n    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/core/doctype/page/page.py\", line 32, in validate\r\n    frappe.throw(_(\"Not in Developer Mode\"))\r\n NameError: global name '_' is not defined\r\n\r\nTraceback (innermost last):\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/app.py\", line 67, in application\r\n    response = frappe.handler.handle()\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/handler.py\", line 74, in handle\r\n    execute_cmd(cmd)\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/handler.py\", line 99, in execute_cmd\r\n    ret = frappe.call(method, **frappe.form_dict)\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/__init__.py\", line 760, in call\r\n    return fn(*args, **newargs)\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/desk/form/save.py\", line 18, in savedocs\r\n    doc.save()\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/model/document.py\", line 225, in save\r\n    self.run_before_save_methods()\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/model/document.py\", line 569, in run_before_save_methods\r\n    self.run_method(\"validate\")\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/model/document.py\", line 531, in run_method\r\n    return Document.hook(fn)(self, *args, **kwargs)\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/model/document.py\", line 663, in composer\r\n    return composed(self, method, *args, **kwargs)\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/model/document.py\", line 646, in runner\r\n    add_to_return_value(self, fn(self, *args, **kwargs))\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/model/document.py\", line 525, in \r\n    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)\r\n  File \"/home/frappe/press/benches/1509171212/apps/frappe/frappe/core/doctype/page/page.py\", line 32, in validate\r\n    frappe.throw(_(\"Not in Developer Mode\"))\r\n NameError: global name '_' is not defined\r\n\r\nPlease Help.\r\n\r\nThanks\r\nNitin"},"comment":{"url":"https://api.github.com/repos/frappe/erpnext/issues/comments/142222892","html_url":"https://github.com/frappe/erpnext/issues/4044#issuecomment-142222892","issue_url":"https://api.github.com/repos/frappe/erpnext/issues/4044","id":142222892,"user":{"login":"Nitin-HMT","id":14542511,"avatar_url":"https://avatars.githubusercontent.com/u/14542511?v=3","gravatar_id":"","url":"https://api.github.com/users/Nitin-HMT","html_url":"https://github.com/Nitin-HMT","followers_url":"https://api.github.com/users/Nitin-HMT/followers","following_url":"https://api.github.com/users/Nitin-HMT/following{/other_user}","gists_url":"https://api.github.com/users/Nitin-HMT/gists{/gist_id}","starred_url":"https://api.github.com/users/Nitin-HMT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nitin-HMT/subscriptions","organizations_url":"https://api.github.com/users/Nitin-HMT/orgs","repos_url":"https://api.github.com/users/Nitin-HMT/repos","events_url":"https://api.github.com/users/Nitin-HMT/events{/privacy}","received_events_url":"https://api.github.com/users/Nitin-HMT/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T09:15:48Z","updated_at":"2015-09-22T09:15:48Z","body":"@rmehta Thank you for your response."}}