In odoo for each form view (like emplooyees) there is an "action" menu showing a "Delete" button. When the user click that button it deletes the record and shows the form view of the next record (employee) on the list. Is it possible to redirect to the tree view of that entity (employee) when the user deletes the record, instead of showing the next emplooyee?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
1
الرد
3143
أدوات العرض
Try to override the Unlink ORM function of related model and redirect to tree view needed, by returning an action dictionary.
eg:
def unlink(self):
res = super(ClassName).unlink()
if res:
return action_dict()هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
5
أغسطس 24
|
46638 | ||
|
2
أبريل 24
|
2551 | ||
|
3
يونيو 23
|
5779 | ||
|
2
يونيو 23
|
4722 | ||
|
3
مارس 23
|
10312 |