This module allows to show a message popup on the client side as result of a button.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Lets developers and administrators show a pop-up message box from a server action button, with a custom title, text or HTML content, and optional action buttons that run methods or open other screens.
This module adds a new kind of action, ir.actions.act_window.message, that opens a dialog box in the web client instead of a normal window action. It is mainly a building block for other modules and for server actions.
When such an action is triggered (for example from a button created by a server action), Odoo shows a pop-up with a title and a message. The message can be plain text (line breaks are kept) or HTML, controlled by the is_html_message flag. The dialog is defined by the ActWindowMessageDialog component and registered in the action_handlers registry.
- A close button is shown by default; its label can be changed with
close_button_title, or hidden by setting it to false. - Extra buttons can be added. Each button can either call a method on a model (with arguments and keyword arguments) or trigger another action, such as opening a form or a wizard. Button labels and CSS classes can be customised.
- After a button is clicked, the current view is refreshed so changes made by the action become visible; if the action returns another action, that action is opened and the dialog closes.
The module only touches the web client and the action model ir.actions.act_window.message; access rights are limited to the system administrator group. No menus or reports are added.
Depends on
Models and fields (1)
- ir.actions.act_window.message · new modeltype
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-03Confirmation status: 7 confirmed, 2 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/web.
terminal Installation and usage
OCA documentation · Odoo 19.0Usage
Source · Odoo 19.0Depend on this module and return
{
'type': 'ir.actions.act_window.message',
'title': _('My title'),
'message': _('My message'),
# optional title of the close button, if not set, will be _('Close')
# if set False, no close button will be shown
'close_button_title': 'Make this window go away',
# Use HTML instead of text
'is_html_message': True,
# this is an optional list of buttons to show
'buttons': [
# a button can be any action (also ir.actions.report.xml et al)
{
'type': 'ir.actions.act_window',
'name': 'All customers',
'res_model': 'res.partner',
'view_mode': 'form',
'views': [[False, 'list'], [False, 'form']],
'domain': [('customer', '=', True)],
},
# or if type == method, you need to pass a model, a method name and
# parameters
{
'type': 'method',
'name': _('Yes, do it'),
'model': self._name,
'method': 'myfunction',
# list of arguments to pass positionally
'args': [self.ids],
# dictionary of keyword arguments
'kwargs': {'force': True},
# button style
'classes': 'btn-primary',
}
]
}You are responsible for translating the messages.
Demo data contains server actions on the module model that demo the features of this addon, those are also convenient for reviewers and migrators to verify correct function.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.