Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
4375 Vistas

I have a button that calls the model action below.

For some reason the warning message doesn't show but the "test" shows on the ODOO log.

def import_file(self):
   print("test")
   return {'warning': {'title':'title','message':'message'}}
Avatar
Descartar
Autor

I would like to use standard ODOO functionality but the above code seems right but does not return a warning as expected.

Autor

I did notice that if its a server action you need to set the action to the above return value

Publicaciones relacionadas Respuestas Vistas Actividad
0
mar 15
5575
2
may 19
3128
2
ago 25
130
1
ago 25
269
1
ago 25
213