Skip to Content
Menu
This question has been flagged
1 Reply
2699 Views

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?

Avatar
Discard
Best Answer

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()
Avatar
Discard
Related Posts Replies Views Activity
5
Aug 24
42983
2
Apr 24
950
3
Jun 23
3148
2
Jun 23
2384
3
Mar 23
8630