diff options
| author | Géry Debongnie <ged@odoo.com> | 2015-03-10 08:47:55 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2015-03-18 09:09:22 +0100 |
| commit | 5e6171bb6f43a2e0c35152fe456125ec8e1fd77e (patch) | |
| tree | 3a016f21068fc724db379fdda3e7bfa16a8c08f1 /addons/mail_tip/static/src/js | |
| parent | 90050c24bb3331189329414d81ace9e839387377 (diff) | |
[REF] various addons: update to the new module system
Diffstat (limited to 'addons/mail_tip/static/src/js')
| -rw-r--r-- | addons/mail_tip/static/src/js/mail_tip.js | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/addons/mail_tip/static/src/js/mail_tip.js b/addons/mail_tip/static/src/js/mail_tip.js index 1b6253d42dd..fefc95e5dbb 100644 --- a/addons/mail_tip/static/src/js/mail_tip.js +++ b/addons/mail_tip/static/src/js/mail_tip.js @@ -1,9 +1,16 @@ -openerp.mail_tip = function(session) { - session.mail.Thread.include({ - message_fetch: function() { - return this._super.apply(this, arguments).done(function() { - openerp.web.bus.trigger('chatter_messages_fetched'); - }); - } - }); -}; +odoo.define(['mail.mail', 'web.core'], function (require) { +"use strict"; + +var mail = require('mail.mail'); +var core = require('web.core'); + +mail.Thread.include({ + message_fetch: function() { + return this._super.apply(this, arguments).done(function() { + core.bus.trigger('chatter_messages_fetched'); + }); + } +}); + +}); + |
