a custombutton should check some Logic and show a simple Messagebox.
in views i added:
<button string="Start Tests" type="object" name="start_test"/>
in the model i tried the following
@api.one
def start_test(self):
#....
#....
return {
'warning': {
'title': 'Information',
'message': 'Testmessage!'
}
}
how can i achiev to show a Messagebox after Buttonclick?