{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/1845","repository_url":"https://api.github.com/repos/odoo/odoo","labels_url":"https://api.github.com/repos/odoo/odoo/issues/1845/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/1845/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/1845/events","html_url":"https://github.com/odoo/odoo/issues/1845","id":40545441,"number":1845,"title":"[7.0] uid of function in function fields","user":{"login":"ernesto-gm","id":7605672,"avatar_url":"https://avatars1.githubusercontent.com/u/7605672?v=4","gravatar_id":"","url":"https://api.github.com/users/ernesto-gm","html_url":"https://github.com/ernesto-gm","followers_url":"https://api.github.com/users/ernesto-gm/followers","following_url":"https://api.github.com/users/ernesto-gm/following{/other_user}","gists_url":"https://api.github.com/users/ernesto-gm/gists{/gist_id}","starred_url":"https://api.github.com/users/ernesto-gm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ernesto-gm/subscriptions","organizations_url":"https://api.github.com/users/ernesto-gm/orgs","repos_url":"https://api.github.com/users/ernesto-gm/repos","events_url":"https://api.github.com/users/ernesto-gm/events{/privacy}","received_events_url":"https://api.github.com/users/ernesto-gm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2014-08-18T23:57:47Z","updated_at":"2017-11-27T13:15:46Z","closed_at":"2017-11-27T13:15:46Z","author_association":"NONE","body":"When we use function fields and need information of user connected, we meet the following problem: always uid is the administrator user id. \n\nwe believe it can cause security problems. For example:\nwe could get all passwords of system users from a function field\nIs it a correct behavior?\n- **Impacted versions**:\n\n7.0 and above\n- **Steps to reproduce**:\n\ncreate function field\n- **Current behavior**:\n\nalways get uid=1 (Admin user)\n- **Expected behavior**:\n\nget user id connected, to be used in the function\n"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/347178233","html_url":"https://github.com/odoo/odoo/issues/1845#issuecomment-347178233","issue_url":"https://api.github.com/repos/odoo/odoo/issues/1845","id":347178233,"user":{"login":"Yenthe666","id":6352350,"avatar_url":"https://avatars3.githubusercontent.com/u/6352350?v=4","gravatar_id":"","url":"https://api.github.com/users/Yenthe666","html_url":"https://github.com/Yenthe666","followers_url":"https://api.github.com/users/Yenthe666/followers","following_url":"https://api.github.com/users/Yenthe666/following{/other_user}","gists_url":"https://api.github.com/users/Yenthe666/gists{/gist_id}","starred_url":"https://api.github.com/users/Yenthe666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yenthe666/subscriptions","organizations_url":"https://api.github.com/users/Yenthe666/orgs","repos_url":"https://api.github.com/users/Yenthe666/repos","events_url":"https://api.github.com/users/Yenthe666/events{/privacy}","received_events_url":"https://api.github.com/users/Yenthe666/received_events","type":"User","site_admin":false},"created_at":"2017-11-27T13:15:46Z","updated_at":"2017-11-27T13:15:46Z","author_association":"CONTRIBUTOR","body":"Hi @ernesto-gm ,\r\n\r\nThank you for your bug report and our apoligies that we haven't had the time to look at this bug report. We do our best to handle all of them, but we sometimes miss some.\r\nAt this point Odoo 7 is no longer supported as Odoo only supports three versions (9.0, 10.0, 11.0 at the moment).\r\nIf you can still reproduce this issue on Odoo 9, Odoo 10 or Odoo 11 we encourage you to create a new bug report.\r\n\r\nRegards,\r\nYenthe"}}
{"actor":{"display_login":"Yenthe666"}}