Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3 Vastaukset
4386 Näkymät

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
Hylkää
Tekijä

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

Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
maalisk. 15
5604
2
toukok. 19
3147
0
syysk. 25
3
0
elok. 25
6
2
elok. 25
271