{"action":"closed","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/9273","repository_url":"https://api.github.com/repos/odoo/odoo","labels_url":"https://api.github.com/repos/odoo/odoo/issues/9273/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/9273/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/9273/events","html_url":"https://github.com/odoo/odoo/issues/9273","id":113677476,"number":9273,"title":"oe_edit_only not available in form subtree","user":{"login":"blaggacao","id":7548295,"avatar_url":"https://avatars0.githubusercontent.com/u/7548295?v=4","gravatar_id":"","url":"https://api.github.com/users/blaggacao","html_url":"https://github.com/blaggacao","followers_url":"https://api.github.com/users/blaggacao/followers","following_url":"https://api.github.com/users/blaggacao/following{/other_user}","gists_url":"https://api.github.com/users/blaggacao/gists{/gist_id}","starred_url":"https://api.github.com/users/blaggacao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blaggacao/subscriptions","organizations_url":"https://api.github.com/users/blaggacao/orgs","repos_url":"https://api.github.com/users/blaggacao/repos","events_url":"https://api.github.com/users/blaggacao/events{/privacy}","received_events_url":"https://api.github.com/users/blaggacao/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2015-10-27T20:15:24Z","updated_at":"2018-03-21T17:46:06Z","closed_at":"2018-03-21T17:46:06Z","author_association":"CONTRIBUTOR","body":"From: https://bugs.launchpad.net/openerp-web/+bug/1311199\n\nHy,\n\nI'm trying to hide some buttons when I'm not in edit mode. I set a button in the header and use the class oe_edit_only :\n\n<button name=\"refresh_record\" string=\"Refresh\" type=\"object\" class=\"oe_edit_only\"/>\n\nIn the header it works perfectly. Then in the object I have some lines (one2many) and in each line I have a button with the same syntax. Unfortunately, the oe_edit_only class is not transmitted to the tree. The button in subtree still available whatever the state of the form. I made an inspect in HTML mode and no class is specified in the subtree button yet I have a class=\"oe_edit_only\" in the xml view definition\n\nI precise that when I change the HTML part directly in my brower and when I set the class class=\"oe_link oe_edit_only\" on my button in subtree, it worked. So the problem seems to come from the fact that the class is not passed to the subtree.\n\n@flotho\n"}}
{"actor":{"display_login":"blaggacao"}}