Skip to content

Instantly share code, notes, and snippets.

@Amr-Nash
Amr-Nash / Notification on Odoo.md
Last active October 6, 2022 12:12
Two ways of showing a notification on Odoo

1. Showing a notification with @onchange functionality:

@onchange('some_field')
def onchange_some_field(self):
  return {
          'warning': {'title': "Warning", 'message': "What is this?", 'type': 'notification'},
      }