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
477 B

  1. from odoo.addons.bus.controllers.main import BusController
  2. from odoo.http import request
  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)