From 46d94c4bdaec287615e47aac6597f36f498cf8de Mon Sep 17 00:00:00 2001 From: lejeune quentin Date: Mon, 29 Jan 2024 10:06:30 +0100 Subject: [PATCH] [FIX] hw_posbox_homepage: In iot, remove sending an unused variable In iot, when we send a request to the route '/hw_posbox_homepage/password' we pass a variable which is unused. And which therefore causes a warning in the iot logs. This commit removes the query parameter. closes odoo/odoo#151604 X-original-commit: f713d48f6393e58cf9c4b5fe08e1407ea2be8513 Signed-off-by: Yaroslav Soroko (yaso) Signed-off-by: Quentin Lejeune (qle) --- addons/hw_posbox_homepage/views/remote_connect.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hw_posbox_homepage/views/remote_connect.html b/addons/hw_posbox_homepage/views/remote_connect.html index 6bc72129cee..1967918d8c1 100644 --- a/addons/hw_posbox_homepage/views/remote_connect.html +++ b/addons/hw_posbox_homepage/views/remote_connect.html @@ -32,7 +32,7 @@ url:'/hw_posbox_homepage/password', type: 'post', contentType: 'application/json', - data: JSON.stringify({ params: {action: 'view'} }), + data: JSON.stringify({}), }).done(function(password) { $('.password').val(password['result']); });