[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) <yaso@odoo.com>
This commit is contained in:
lejeune quentin
2024-04-18 12:55:06 +00:00
parent 9e8c451f69
commit bbd8e1da50
+1 -1
View File
@@ -307,7 +307,6 @@ Section $(TITLE_IOT) IOT
nsExec::ExecToStack '"$INSTDIR\python\python.exe" "$INSTDIR\server\odoo-bin" genproxytoken' nsExec::ExecToStack '"$INSTDIR\python\python.exe" "$INSTDIR\server\odoo-bin" genproxytoken'
pop $0 pop $0
pop $ProxyTokenPwd pop $ProxyTokenPwd
Call RestartOdooService
SectionEnd SectionEnd
@@ -363,6 +362,7 @@ Section $(TITLE_Ghostscript) SectionGhostscript
ExecWait '"$TEMP\$ghostscript_exe_filename" \ ExecWait '"$TEMP\$ghostscript_exe_filename" \
/S \ /S \
/D=$INSTDIR\Ghostscript' /D=$INSTDIR\Ghostscript'
Call RestartOdooService
SectionEnd SectionEnd
Section -Post Section -Post