Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3 Besvarelser
4361 Visninger

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
Kassér
Forfatter

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

Forfatter

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

Related Posts Besvarelser Visninger Aktivitet
0
mar. 15
5572
2
maj 19
3126
0
aug. 25
12
0
aug. 25
49
1
aug. 25
262