{"action":"created","issue":{"url":"https://api.github.com/repos/OCA/web/issues/109","labels_url":"https://api.github.com/repos/OCA/web/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/OCA/web/issues/109/comments","events_url":"https://api.github.com/repos/OCA/web/issues/109/events","html_url":"https://github.com/OCA/web/pull/109","id":67080758,"number":109,"title":"[ADD] Added web_remove_developer_mode_link.","user":{"login":"alejandrosantana","id":3707483,"avatar_url":"https://avatars.githubusercontent.com/u/3707483?v=3","gravatar_id":"","url":"https://api.github.com/users/alejandrosantana","html_url":"https://github.com/alejandrosantana","followers_url":"https://api.github.com/users/alejandrosantana/followers","following_url":"https://api.github.com/users/alejandrosantana/following{/other_user}","gists_url":"https://api.github.com/users/alejandrosantana/gists{/gist_id}","starred_url":"https://api.github.com/users/alejandrosantana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alejandrosantana/subscriptions","organizations_url":"https://api.github.com/users/alejandrosantana/orgs","repos_url":"https://api.github.com/users/alejandrosantana/repos","events_url":"https://api.github.com/users/alejandrosantana/events{/privacy}","received_events_url":"https://api.github.com/users/alejandrosantana/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-08T08:50:43Z","updated_at":"2015-04-08T09:00:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OCA/web/pulls/109","html_url":"https://github.com/OCA/web/pull/109","diff_url":"https://github.com/OCA/web/pull/109.diff","patch_url":"https://github.com/OCA/web/pull/109.patch"},"body":"As some customers want to restrict 'Developer Mode' for most users, this is simple module that removes the link in \"About\" dialog that activates Developer Mode.\r\nIt still allows to type ?debug in URL for those technical users that actually need this.\r\n\r\nAs a sidenote, first I wanted to make it optional and be able to show it only to a certain group of users, but it seems impossible to apply \"groups\" policy in qweb-json temapletes (see https://github.com/odoo/odoo/issues/5058 and https://github.com/odoo/odoo/issues/6190). Or, at least, I do not know how to do it.\r\nAs other option I thought in allowing only Administrator user (uid == 1), but I do not know how to get user id in such qweb template.\r\nI tried this with out any luck (nor 'groups' nor uid):\r\n```\r\n    <t t-extend=\"UserMenu.about\">\r\n        <t t-jquery=\".oe_activate_debug_mode\" t-operation=\"replace\">\r\n            <t t-if=\"uid == 1\">\r\n                <a class=\"oe_activate_debug_mode oe_right label label-primary\" href=\"?debug\" groups=\"base.group_no_one\">Activate the developer mode</a>\r\n            </t>\r\n        </t>\r\n    </t>\r\n```\r\n\r\nI am open to ideas to enhace this.\r\n"},"comment":{"url":"https://api.github.com/repos/OCA/web/issues/comments/90851834","html_url":"https://github.com/OCA/web/pull/109#issuecomment-90851834","issue_url":"https://api.github.com/repos/OCA/web/issues/109","id":90851834,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T09:00:38Z","updated_at":"2015-04-08T09:00:38Z","body":"\n[![Coverage Status](https://coveralls.io/builds/2288546/badge)](https://coveralls.io/builds/2288546)\n\nCoverage remained the same at 63.49% when pulling **2f861cfa7e302df1122def695418a55f76ee4f4b on alejandrosantana:8.0** into **fbe2ffa15e217dbd61b7b6c97157879a53270c4b on OCA:8.0**.\n"}}