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:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
2699
Views
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()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 | |
---|---|---|---|---|
|
5
Aug 24
|
42983 | ||
|
2
Apr 24
|
950 | ||
|
3
Jun 23
|
3148 | ||
|
2
Jun 23
|
2384 | ||
|
3
Mar 23
|
8630 |