From 352807298fbd051bb554da658f1f765dfe34a547 Mon Sep 17 00:00:00 2001 From: jem-odoo Date: Fri, 9 Nov 2018 13:04:34 +0000 Subject: [PATCH] [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 --- addons/hr_presence/controllers/bus_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_presence/controllers/bus_controller.py b/addons/hr_presence/controllers/bus_controller.py index 6ee91242988..685ac4e58c5 100644 --- a/addons/hr_presence/controllers/bus_controller.py +++ b/addons/hr_presence/controllers/bus_controller.py @@ -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)