{"action":"created","issue":{"url":"https://api.github.com/repos/OCA/web/issues/284","labels_url":"https://api.github.com/repos/OCA/web/issues/284/labels{/name}","comments_url":"https://api.github.com/repos/OCA/web/issues/284/comments","events_url":"https://api.github.com/repos/OCA/web/issues/284/events","html_url":"https://github.com/OCA/web/pull/284","id":124788145,"number":284,"title":"[9.0] Add web_access_rule_buttons","user":{"login":"guewen","id":417223,"avatar_url":"https://avatars.githubusercontent.com/u/417223?v=3","gravatar_id":"","url":"https://api.github.com/users/guewen","html_url":"https://github.com/guewen","followers_url":"https://api.github.com/users/guewen/followers","following_url":"https://api.github.com/users/guewen/following{/other_user}","gists_url":"https://api.github.com/users/guewen/gists{/gist_id}","starred_url":"https://api.github.com/users/guewen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guewen/subscriptions","organizations_url":"https://api.github.com/users/guewen/orgs","repos_url":"https://api.github.com/users/guewen/repos","events_url":"https://api.github.com/users/guewen/events{/privacy}","received_events_url":"https://api.github.com/users/guewen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OCA/web/labels/needs%20review","name":"needs review","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/OCA/web/milestones/4","html_url":"https://github.com/OCA/web/milestones/9.0","labels_url":"https://api.github.com/repos/OCA/web/milestones/4/labels","id":1354421,"number":4,"title":"9.0","description":null,"creator":{"login":"pedrobaeza","id":7165771,"avatar_url":"https://avatars.githubusercontent.com/u/7165771?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrobaeza","html_url":"https://github.com/pedrobaeza","followers_url":"https://api.github.com/users/pedrobaeza/followers","following_url":"https://api.github.com/users/pedrobaeza/following{/other_user}","gists_url":"https://api.github.com/users/pedrobaeza/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrobaeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrobaeza/subscriptions","organizations_url":"https://api.github.com/users/pedrobaeza/orgs","repos_url":"https://api.github.com/users/pedrobaeza/repos","events_url":"https://api.github.com/users/pedrobaeza/events{/privacy}","received_events_url":"https://api.github.com/users/pedrobaeza/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":1,"state":"open","created_at":"2015-10-14T00:57:07Z","updated_at":"2016-01-04T16:24:38Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-01-04T16:17:23Z","updated_at":"2016-01-05T14:36:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OCA/web/pulls/284","html_url":"https://github.com/OCA/web/pull/284","diff_url":"https://github.com/OCA/web/pull/284.diff","patch_url":"https://github.com/OCA/web/pull/284.patch"},"body":"Disable buttons which lead to action disallowed by record rules."},"comment":{"url":"https://api.github.com/repos/OCA/web/issues/comments/169018124","html_url":"https://github.com/OCA/web/pull/284#issuecomment-169018124","issue_url":"https://api.github.com/repos/OCA/web/issues/284","id":169018124,"user":{"login":"yvaucher","id":4158438,"avatar_url":"https://avatars.githubusercontent.com/u/4158438?v=3","gravatar_id":"","url":"https://api.github.com/users/yvaucher","html_url":"https://github.com/yvaucher","followers_url":"https://api.github.com/users/yvaucher/followers","following_url":"https://api.github.com/users/yvaucher/following{/other_user}","gists_url":"https://api.github.com/users/yvaucher/gists{/gist_id}","starred_url":"https://api.github.com/users/yvaucher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yvaucher/subscriptions","organizations_url":"https://api.github.com/users/yvaucher/orgs","repos_url":"https://api.github.com/users/yvaucher/repos","events_url":"https://api.github.com/users/yvaucher/events{/privacy}","received_events_url":"https://api.github.com/users/yvaucher/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T14:36:48Z","updated_at":"2016-01-05T14:36:48Z","body":"When trying to create an event from calendar, I get this error:\r\n\r\n    Uncaught TypeError: Cannot read property 'find' of undefined\r\n    http://localhost:8501/web_access_rule_buttons/static/src/js/web_access_rule_buttons.js:38\r\n    Traceback:\r\n    TypeError: Cannot read property 'find' of undefined\r\n        at OdooClass.FormView.include.show_hide_edit_button (http://localhost:8501/web_access_rule_buttons/static/src/js/web_access_rule_buttons.js:38:33)\r\n    at Object.<anonymous> (http://localhost:8501/web_access_rule_buttons/static/src/js/web_access_rule_buttons.js:33:16)\r\n    at Object.<anonymous> (http://localhost:8501/web/static/lib/jquery/jquery.js:3276:89)\r\n    at fire (http://localhost:8501/web/static/lib/jquery/jquery.js:3119:58)\r\n    at Object.self.fireWith [as resolveWith] (http://localhost:8501/web/static/lib/jquery/jquery.js:3231:49)\r\n    at Object.deferred.(anonymous function) (http://localhost:8501/web/static/lib/jquery/jquery.js:3321:62)\r\n    at fire (http://localhost:8501/web/static/lib/jquery/jquery.js:3119:58)\r\n    at Object.self.fireWith [as resolveWith] (http://localhost:8501/web/static/lib/jquery/jquery.js:3231:49)\r\n    at Object.<anonymous> (http://localhost:8501/web/static/lib/jquery/jquery.js:3283:104)\r\n    at fire (http://localhost:8501/web/static/lib/jquery/jquery.js:3119:58)"}}