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
556 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 = list(channels) # do not alter original list
  10. channels.append((request.db, 'mail_base.mail_sent'))
  11. return super(MailChatController, self)._poll(dbname, channels, last, options)