{"action":"closed","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/5589","labels_url":"https://api.github.com/repos/odoo/odoo/issues/5589/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/5589/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/5589/events","html_url":"https://github.com/odoo/odoo/issues/5589","id":59811791,"number":5589,"title":"[8.0] No Prevent message when deleting a one2many line","user":{"login":"JonathanNEMRY","id":7601731,"avatar_url":"https://avatars.githubusercontent.com/u/7601731?v=3","gravatar_id":"","url":"https://api.github.com/users/JonathanNEMRY","html_url":"https://github.com/JonathanNEMRY","followers_url":"https://api.github.com/users/JonathanNEMRY/followers","following_url":"https://api.github.com/users/JonathanNEMRY/following{/other_user}","gists_url":"https://api.github.com/users/JonathanNEMRY/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanNEMRY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanNEMRY/subscriptions","organizations_url":"https://api.github.com/users/JonathanNEMRY/orgs","repos_url":"https://api.github.com/users/JonathanNEMRY/repos","events_url":"https://api.github.com/users/JonathanNEMRY/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanNEMRY/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-04T15:18:15Z","updated_at":"2015-03-26T14:25:45Z","closed_at":"2015-03-26T14:25:45Z","body":"**No Prevent message when deleting a one2many line**\r\n\r\n**Impacted versions:**\r\n\r\n - 8.0\r\n\r\n**Steps to reproduce:**\r\n\r\n1. Go to runbot/configuration/Users/Groups\r\n2. Select one and pass into `edit mode`\r\n3. Click on the trash button of a line of the users list: a message is shown `do you really want to remove...`\r\n4. Go to Sales/Quotations/ and select one with order lines\r\n5. Pass into the edit mode and click on the trash button of a line\r\n\r\n**Current behavior:**\r\n\r\n - No message, the record is deleted\r\n\r\n**Expected behavior:**\r\n\r\n- Same behavior as the users' lines into the goups form\r\n\r\n**Notes**\r\n\r\n1. This happens only for a `one2many`, not for a `many2many`\r\n2. If you set a `widget=many2many` the message is shown and there is no bug\r\n3. In debug mode we pass as well into the \r\n```\r\nif (!(ids.length && confirm(_t(\"Do you really want to remove these records?\")))) {\r\n            return;\r\n}\r\n```\r\nbut strangely the right part return true without opening a window\r\n"}}