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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
2
Replies
3270
Views
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
Hi, if you use v11 so you can use this module: https://apps.odoo.com/apps/modules/11.0/delete_x2m_confirm_dialog/
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Nov 24
|
1482 | ||
|
1
Nov 24
|
1186 | ||
|
2
Sep 24
|
1046 | ||
Update stock quantity
Solved
|
|
1
Aug 24
|
2450 | |
|
3
Aug 24
|
2681 |