I want to show popup message in odoo when a record is deleted from the view. How can I do it? Is it possible to show that message only when the record is deleted from the 'form view' and not from the 'tree view'?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Hi Ernesto:
You can inherit and extend the unlink function in the base Model class if you want this across the board. Here's a link to the code in the base class.
https://github.com/odoo/odoo/blob/13.0/odoo/models.py#L3299
If you want this to apply only to specific models, you'll need to extend this function in the classes of those models instead of the base Model class.
Regarding your second question, these changes will apply across the board i.e. form view, list view, import, api, custom code, etc.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 1 20
|
2994 | ||
|
2
thg 3 15
|
3993 | ||
|
1
thg 10 22
|
1889 | ||
|
4
thg 10 20
|
72817 | ||
|
6
thg 12 19
|
17900 |