[FIX] hr_presence: propagate options in longpolling

The hr_presence module recently introduced adds
a hook on the bus controller in order to execute
its very important and legally business, but this
hook brings an error as it forgot to propagate the
bus options.
Consequence: the bus_inactivity, responsible of the
bus.presence are not pass to super. So all user
appears offline.

closes odoo/odoo#28531
This commit is contained in:
jem-odoo
2018-11-09 13:04:34 +00:00
parent bf441b984f
commit 352807298f
@@ -21,4 +21,4 @@ class BusController(BusController):
with registry(request.env.cr.dbname).cursor() as cr:
env = Environment(cr, request.env.user.id, {})
env['res.users.log'].create({'ip': ip_address})
return super(BusController, self).poll(channels, last, options=None)
return super(BusController, self).poll(channels, last, options=options)