Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
4365 Weergaven

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
Annuleer
Auteur

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

Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
0
mrt. 15
5573
2
mei 19
3126
1
aug. 25
36
0
aug. 25
50
1
aug. 25
262