You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
507 B

  1. # -*- coding: utf-8 -*-
  2. from openerp.http import request
  3. from openerp.addons.bus.controllers.main import BusController
  4. class MailChatController(BusController):
  5. # -----------------------------
  6. # Extends BUS Controller Poll
  7. # -----------------------------
  8. def _poll(self, dbname, channels, last, options):
  9. if request.session.uid:
  10. channels.append((request.db, 'mail_base.mail_sent'))
  11. return super(MailChatController, self)._poll(dbname, channels, last, options)