Skip to Content
Menu
This question has been flagged
3 Replies
3647 Views

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
Discard
Author

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

Author

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

Related Posts Replies Views Activity
0
Mar 15
4556
2
May 19
2225
0
Dec 24
5
0
Nov 24
6
0
Nov 24
50