- 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. -
+ 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');
@@ -24,9 +23,9 @@ var session = require('web.session');
WebClient.include({
show_application: function() {
- var channel = session.db + '_mychannel';
+ var channel = 'mychannel';
this.bus_declare_channel(channel, this.doSomething);
- return this._super();
+ return this._super.apply(this, arguments);
},
doSomething: function(message) {
...
@@ -38,14 +37,45 @@ WebClient.include({
Adds a "refresh" channel to the web client, - which can be used to trigger a view refresh without refreshing the - browser itself. Furthermore, it allows the user the creation of - "refresh" rules. These rules can be applied to any Odoo model and - trigger a refresh either on create, write or unlink.
+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 rules can be created easily inside of Odoo. The view to
- create rules is located under "Settings" "Technical" "Auto Refresh" "Rule".
- Each model can only have one corresponding rule to prevent
- inconsistency.
-
+ 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.
+Auto Refresh supports the Odoo - Chatter Widget. By creating a rule for the Message model and one for - the Activity model, the corresponding views will refresh if a new - message is sent.
++ Click to setup a new automated refresh action. +
+Technical module to provide some utility - features. The module is mainly used as a dependency by other - modules and to provide a collection of common libraries.
+ features. The module is mainly used as a dependency by other modules + and to provide a collection of common libraries. It has no direct + visible effect on the system.