OdooWiki OCA HUB

Web Notify

web_notify folder_open OCA/web open_in_new
Uncategorised License: LGPL-3

Send instant notification messages to the user in live.

This technical module allows you to send instant notification messages from the server to the user in live. Two kinds of notification are supported.

  • Success: Displayed in a success theme color flying popup div
  • Danger: Displayed in a danger theme color flying popup div
  • Warning: Displayed in a warning theme color flying popup div
  • Information: Displayed in a info theme color flying popup div
  • Default: Displayed in a default theme color flying popup div

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

This module lets Odoo send instant pop-up notifications to users while they work, with success, danger, warning, info or default styles. Developers can trigger them from any server action or automation.

Web Notify adds a way for Odoo to show live pop-up messages to a user without reloading the page. The messages appear in the top-right corner and can be styled as success, danger, warning, information or default, each with its own colour theme.

On the user form (res.users) a new "Test web notify" tab is added with buttons to try each notification type: success, danger, warning, info and default. These buttons are only for testing and demonstration.

Behind the scenes, the module adds five computed fields on res.users that hold the notification channel names, and five methods (notify_success, notify_danger, notify_warning, notify_info, notify_default) that other modules or server actions can call to send a message to a user. A message can include a title, be sticky (stays until closed), contain HTML, and even offer an action button that opens a record or menu when clicked.

A security rule prevents non-admin users from sending notifications to other users; only administrators or the system can do that. The module depends on the web, bus, base and mail modules, and it patches the standard notification component to accept the new types.

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 8 confirmed, 1 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 19.0

This module is based on the Instant Messaging Bus. To work properly, the server must be launched in gevent mode.

To send a notification to the user you just need to call one of the new methods defined on res.users:

self.env.user.notify_success(message='My success message')

or

self.env.user.notify_danger(message='My danger message')

or

self.env.user.notify_warning(message='My warning message')

or

self.env.user.notify_info(message='My information message')

or

self.env.user.notify_default(message='My default message')

The notifications can bring interactivity with some buttons.

  • One allowing to refresh the active view
  • Another allowing to send a window / client action

The reload button is activated when sending the notification with:

The action can be used using the action keyword and we can choose which name to give to our button with the button_name key in the action context params key:

action = self.env["ir.actions.act_window"]._for_xml_id('sale.action_orders')
action.update({
   'res_id': self.id,
   'views': [(False, 'form')],
})
action["context"].setdefault("params", {})
action["context"]["params"]["button_name"] = "Sales"
action["context"]["params"]["button_icon"] = "fa-eye"
self.env.user.notify_info('My information message', action=action)

You can test the behaviour of the notifications by installing this module in a demo database. Access the users form through Settings -\> Users & Companies. You'll see a tab called "Test web notify", here you'll find two buttons that'll allow you test the module.

No verified information in OCA: Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.