Skip to content
Snippets Groups Projects
Commit bb04da8f authored by Antoine Prieels's avatar Antoine Prieels
Browse files

[FIX] hw_drivers: Traceback in 'device_changed'


Only the 'action' requests have the 'data' parameter set, so any other
request triggering a 'device_changed' failed.

closes odoo/odoo#66826

X-original-commit: 0850814d
Signed-off-by: default avatarQuentin Lejeune (qle) <qle@odoo.com>
Signed-off-by: default avatarAntoine Prieëls <aprieels@users.noreply.github.com>
parent a14705ae
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ class EventManager(object):
**device.data,
'device_identifier': device.device_identifier,
'time': time.time(),
'request_data': json.loads(request.params['data']) if request else None,
'request_data': json.loads(request.params['data']) if request and 'data' in request.params else None,
}
self.events.append(event)
for session in self.sessions:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment