Skip to Content
Menu
This question has been flagged
1 Reply
3137 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
46617
2
Apr 24
2545
3
Jun 23
5767
2
Jun 23
4708
3
Mar 23
10305