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
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
1
Responder
3138
Vistas
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()¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
Select multiple elements with XPath
Resuelto
|
|
5
ago 24
|
46628 | |
|
2
abr 24
|
2549 | ||
|
3
jun 23
|
5776 | ||
|
2
jun 23
|
4720 | ||
|
3
mar 23
|
10310 |