Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
4381 Visualizzazioni

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
Abbandona
Autore

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

Autore

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

Post correlati Risposte Visualizzazioni Attività
0
mar 15
5581
2
mag 19
3138
2
ago 25
215
1
ago 25
315
1
ago 25
258