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")
print("test")
return {'warning': {'title':'title','message':'message'}}
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
0
mrt. 15
|
5573 | ||
|
2
mei 19
|
3126 | ||
|
1
aug. 25
|
36 | ||
|
0
aug. 25
|
50 | ||
|
1
aug. 25
|
262 |
you can show your custom dialog box: https://learnopenerp.blogspot.com/2017/12/how-to-display-confirmation-display-box.html
I would like to use standard ODOO functionality but the above code seems right but does not return a warning as expected.
I did notice that if its a server action you need to set the action to the above return value