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.

14 lines
483 B

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