bus.py 420 B

123456789101112
  1. # -*- coding: utf-8 -*-
  2. from openerp.http import request
  3. from openerp.addons.bus.bus import Controller
  4. class BusControllerInherit(Controller):
  5. def _poll(self, dbname, channels, last, options):
  6. if request.session.uid:
  7. channels = list(channels)
  8. channels.append((request.db, 'pos.stock.channel'))
  9. return super(BusControllerInherit, self)._poll(dbname, channels, last, options)