Skip to Content
Menu
This question has been flagged
2 Replies
3270 Views

In odoo when you show a One2Many field as a tree view, there is allways a trash can icon at the right side, that is used to delete the selected One2Many record. When you click that icon it deletes de record without configration. I was wondering if it is possible to show a confirmation dialog ("Are you sure you want to delete the record?") when clicking the trash can icon in the One2Many fields tree list.

Avatar
Discard
Best Answer

Hi, you can diable the delete button (with an attribut in the tree view) and add a custom button in the tree view (maybe with a trash icon) and a confirm attribut

Bye

Avatar
Discard
Best Answer

Hi, if you use v11 so you can use this module: https://apps.odoo.com/apps/modules/11.0/delete_x2m_confirm_dialog/

Avatar
Discard
Related Posts Replies Views Activity
1
Nov 24
1482
1
Nov 24
1186
2
Sep 24
1046
1
Aug 24
2450
3
Aug 24
2681