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
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
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.
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
1
Jan 20
|
3009 | ||
|
2
Mar 15
|
3994 | ||
Patch unlink() 'states check' on Sale Order
Diselesaikan
|
|
1
Okt 22
|
1895 | |
|
4
Okt 20
|
72828 | ||
How to unlink record from Ony2Many relation?
Diselesaikan
|
|
6
Des 19
|
17923 |