{"action":"created","issue":{"url":"https://api.github.com/repos/frappe/erpnext/issues/15886","repository_url":"https://api.github.com/repos/frappe/erpnext","labels_url":"https://api.github.com/repos/frappe/erpnext/issues/15886/labels{/name}","comments_url":"https://api.github.com/repos/frappe/erpnext/issues/15886/comments","events_url":"https://api.github.com/repos/frappe/erpnext/issues/15886/events","html_url":"https://github.com/frappe/erpnext/issues/15886","id":376365830,"node_id":"MDU6SXNzdWUzNzYzNjU4MzA=","number":15886,"title":"Client-side permission errors when adding Item Barcode to Item page","user":{"login":"gbm001","id":4930097,"node_id":"MDQ6VXNlcjQ5MzAwOTc=","avatar_url":"https://avatars2.githubusercontent.com/u/4930097?v=4","gravatar_id":"","url":"https://api.github.com/users/gbm001","html_url":"https://github.com/gbm001","followers_url":"https://api.github.com/users/gbm001/followers","following_url":"https://api.github.com/users/gbm001/following{/other_user}","gists_url":"https://api.github.com/users/gbm001/gists{/gist_id}","starred_url":"https://api.github.com/users/gbm001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbm001/subscriptions","organizations_url":"https://api.github.com/users/gbm001/orgs","repos_url":"https://api.github.com/users/gbm001/repos","events_url":"https://api.github.com/users/gbm001/events{/privacy}","received_events_url":"https://api.github.com/users/gbm001/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-01T12:06:36Z","updated_at":"2018-11-29T13:14:21Z","closed_at":"2018-11-12T11:38:22Z","author_association":"CONTRIBUTOR","body":"Hi,\r\n\r\n![image](https://user-images.githubusercontent.com/4930097/47850507-5c37e000-ddcd-11e8-9d49-c4d16bb4dfdc.png)\r\n![image](https://user-images.githubusercontent.com/4930097/47850592-b769d280-ddcd-11e8-9325-437827f30c9d.png)\r\n\r\nWhen typing in the Item Barcode quick entry table 'Barcode' field on the Item page, the above type of message is displayed (although I don't think it actually stops you doing anything. I have tried logging in as the Administrator and as an all-powerful (I think) system user.\r\n\r\nSo far I have traced it to the key_up handler on the input, which calls setup_autoname_check in frappe/frappe/public/js/frappe/form/controls/data.js which then calls frappe.db.get_value. The arguments for frappe.db.get_value are 'Item Barcode', the value of the input, and the callback. Calling frappe.db.get_value from the console:\r\n`frappe.db.get_value('Item` Barcode', '1234', 'name', function(r) {console.log(r);})`\r\ntriggers the same permissions error (that's as far as I've got).\r\n\r\nTo reproduce:\r\nCreate a new ERPNext site. Create a new item. Start typing in the quick entry table for Item Barcode (after pressing 'Add Row'). Error messages are displayed.\r\n\r\nVersion: Latest git from develop branch for frappe and erpnext.\r\n\r\nI have my suspicions that it is related to the issue with the API leaking child table information https://github.com/frappe/frappe/issues/5770, and the consequent need to pass a 'parent' parameter."},"comment":{"url":"https://api.github.com/repos/frappe/erpnext/issues/comments/442829022","html_url":"https://github.com/frappe/erpnext/issues/15886#issuecomment-442829022","issue_url":"https://api.github.com/repos/frappe/erpnext/issues/15886","id":442829022,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjgyOTAyMg==","user":{"login":"gbm001","id":4930097,"node_id":"MDQ6VXNlcjQ5MzAwOTc=","avatar_url":"https://avatars2.githubusercontent.com/u/4930097?v=4","gravatar_id":"","url":"https://api.github.com/users/gbm001","html_url":"https://github.com/gbm001","followers_url":"https://api.github.com/users/gbm001/followers","following_url":"https://api.github.com/users/gbm001/following{/other_user}","gists_url":"https://api.github.com/users/gbm001/gists{/gist_id}","starred_url":"https://api.github.com/users/gbm001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbm001/subscriptions","organizations_url":"https://api.github.com/users/gbm001/orgs","repos_url":"https://api.github.com/users/gbm001/repos","events_url":"https://api.github.com/users/gbm001/events{/privacy}","received_events_url":"https://api.github.com/users/gbm001/received_events","type":"User","site_admin":false},"created_at":"2018-11-29T13:14:21Z","updated_at":"2018-11-29T13:14:21Z","author_association":"CONTRIBUTOR","body":"https://github.com/frappe/frappe/pull/6570"}}
{"actor":{"display_login":"gbm001"}}