From bbd8e1da503aaa934fcac5a1306115082f215d2e Mon Sep 17 00:00:00 2001 From: lejeune quentin Date: Wed, 17 Apr 2024 16:42:28 +0200 Subject: [PATCH] [FIX] hw_*: Restart IoT windows service at the end of install Currently restarts of the odoo server do not happen at the end of the installation of all components. The devices are therefore not detected. With this commit we restart the server when all the components have been installed closes odoo/odoo#162362 Signed-off-by: Yaroslav Soroko (yaso) --- setup/win32/setup.nsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/win32/setup.nsi b/setup/win32/setup.nsi index c7dd3e78bf3..c153bdf810f 100644 --- a/setup/win32/setup.nsi +++ b/setup/win32/setup.nsi @@ -307,7 +307,6 @@ Section $(TITLE_IOT) IOT nsExec::ExecToStack '"$INSTDIR\python\python.exe" "$INSTDIR\server\odoo-bin" genproxytoken' pop $0 pop $ProxyTokenPwd - Call RestartOdooService SectionEnd @@ -363,6 +362,7 @@ Section $(TITLE_Ghostscript) SectionGhostscript ExecWait '"$TEMP\$ghostscript_exe_filename" \ /S \ /D=$INSTDIR\Ghostscript' + Call RestartOdooService SectionEnd Section -Post