Hello,
I added a button to the form view of a model. When clicking on that button, a field value is updated and I also want to display a notification to let the user know something happened, but can't find a way to do this.
If I do this
self.write({'is_published': True})
return {
'type': 'ir.actions.client',
'tag': 'display_notification',
'params': {
'title': 'Success',
'message': 'Agent was successfully updated',
'sticky': False,
}
}
the field value is updated but I need to reload the form view for the value to be updated in the UI.
How can I achieve the desired behaviour, any help is appreciated!