This module extends Cyllo functionality, allowing to 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.
This technical module allows you to send instant notification messages from the server to the user in live. Two kinds of notification are supported:
Installation:
This module is based on the Instant Messaging Bus. To work properly, the server must be launched in gevent mode.
Usage:
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')
To send instant notification messages from the server to the user in live using the methods.
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.