Is it possible to show the Connection Lost notification from python code in V13?
I want to be able to click a button and show this notification that there is no data available.
I know it can be done from Javascript, but i am trying to show it at the click of a button. I do not wish to raise a UserError or ValidationError or a Warning...
I also tried to do,
def show_notification(self):
return {
'type': 'ir.actions.client',
'tag': 'display_notification',
'params': {
'title': _('No Information!'),
'message': 'Cannot find any data right now. Please try again later!',
'sticky': False,
}
}
but it does not do anything!