İçereği Atla
Menü
Bu soru işaretlendi
3 Cevaplar
4367 Görünümler

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
Vazgeç
Üretici

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

Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Mar 15
5574
2
May 19
3126
2
Ağu 25
77
1
Ağu 25
262
1
Ağu 25
202