- Extends the Odoo web client to include bus channels. Channels can be - created to listen to Odoo bus notifications. To add a channel - listener to the client just extend the web client and declare a new - bus channel.
-
-
-var WebClient = require('web.WebClient');
-var session = require('web.session');
-
-WebClient.include({
- show_application: function() {
- var channel = 'mychannel';
- this.bus_declare_channel(channel, this.doSomething);
- return this._super.apply(this, arguments);
- },
- doSomething: function(message) {
- ...
- }
-});
-
-
- Adds a notification channel to - the web client. By sending a message to this channel, a notification - is send to the web client. Messages can either be sent via a wizard - or directly from the python code either via a method in ResUsers or - by an entry in the bus system.
-With the Notification Wizard you - can easily create and send new messages. If no user is selected, the - message is sent globally to all users.
-A message can be either an - information or a warning and the sticky option leaves the message - displayed until a user action.
-Adds a channel called "refresh" - to the web client, which can be used to trigger a view reload - without refreshing the browser itself. Furthermore, it allows the - user the creation of action rules. These rules can be applied to any - model and trigger a refresh either on create, update or unlink.
-- Refresh actions can be created easily inside of Odoo. The view to - create such rules is located under "Settings" "Technical" "Automation" "Automated - Refresh". -
-The module also has support for - the Odoo Chatter Widget. As soon as a new message or activity is - created, a corresponding refresh message is sent.
-- Click to setup a new automated refresh action. -
-