| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 504 |
| Technical Name |
ar_notif_bar_push |
| License | OPL-1 |
| Versions | 17.0 18.0 19.0 |
Notification Bar Push - Real-time Updates
Instant Notification Updates Without Browser Refresh Using Odoo Bus System
Overview
Notification Bar Push extends the ar_notif_bar module to provide real-time notification updates. When notifications are created, updated, or deleted, all connected users receive instant updates through Odoo's bus system without needing to refresh their browser. This ensures everyone sees the most current information in real-time across all user sessions and browser tabs.
Key Features
- Real-time Streaming Updates - Notifications appear instantly when created or modified without any delay or manual refresh
- No Browser Refresh Required - Updates stream automatically to all connected users using Odoo's efficient bus system
- Multi-tab Synchronization - Changes synchronize across all open browser tabs and windows automatically
- Automatic Removal - Notifications disappear instantly when deactivated or deleted from the system
- Bus Integration - Leverages Odoo's built-in bus infrastructure for reliable real-time communication
- Zero Configuration - Works immediately after installation with no additional setup required
- Seamless Integration - Fully compatible with all ar_notif_bar features including priority, scheduling, and custom colors
How It Works
The module uses Odoo's bus system to push notification updates in real-time:
- Create/Update Notification - Administrator creates or modifies a notification in the system
- Bus Message Sent - System automatically sends an update message via the bus channel
- Real-time Sync - All connected users receive the update instantly through websocket connection
- Auto Display - Notification bar updates automatically without requiring browser refresh
Technical Implementation
Backend:
- Inherits from
notification.barmodel and addsbus.listener.mixin - Sends bus notification on create, write, and unlink operations
- Uses global channel 'notification.bar.update' for broadcasting
- All connected users receive updates via the bus
- Efficient message delivery across all active sessions
Frontend:
- Patches the notification bar component to subscribe to bus channel
- Listens for 'notification_bar_update' events in real-time
- Automatically reloads notification data when updates are received
- Cleans up subscriptions properly on component unmount
Installation & Usage
Requirements:
- ar_notif_bar module (Notification Bar) - must be installed first
- bus module (Odoo core - automatically available)
- Odoo 17.0
Installation Steps:
- Ensure ar_notif_bar module is installed and configured
- Install ar_notif_bar_push from Apps menu
- Notifications will immediately start updating in real-time
Usage:
No configuration needed. After installation, the module works automatically:
- Create or modify notifications in Settings â Technical â Notification Bar
- All connected users see updates immediately without refresh
- Changes sync across all browser tabs automatically
- Deleted or deactivated notifications disappear instantly
Need Help or Customization?
For support, customization, or demo requests, contact AR.
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module