Skip to Content
Menu
This question has been flagged
3 Replies
4378 Rodiniai

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'}}
Portretas
Atmesti
Autorius

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

Autorius

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

Related Posts Replies Rodiniai Veikla
0
kov. 15
5576
2
geg. 19
3133
0
rugp. 25
3
2
rugp. 25
145
1
rugp. 25
277