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:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
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.
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
1
يناير 20
|
2993 | ||
|
2
مارس 15
|
3993 | ||
|
1
أكتوبر 22
|
1889 | ||
|
4
أكتوبر 20
|
72815 | ||
|
6
ديسمبر 19
|
17897 |