Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
4363 Zobrazení

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
Zrušit
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

Related Posts Odpovědi Zobrazení Aktivita
0
bře 15
5573
2
kvě 19
3126
0
srp 25
28
0
srp 25
50
1
srp 25
262