Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3138 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
5
ago 24
46628
2
abr 24
2549
3
jun 23
5776
2
jun 23
4720
3
mar 23
10310