[FIX] point_of_sale: IoT Box modules list on a single line

By default, the `ls` command has a width limit. Everything after this
limit will be split on a second line.

This happened when listing the modules present on the Iot Box in v12.
The list of modules was split accross two lines, the modules on the
second line were then not loaded when starting the Odoo service.

closes odoo/odoo#65259

X-original-commit: 60b58322dc803dfbf734374b63f9556563a19b8f
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
This commit is contained in:
Antoine Prieels
2021-01-29 11:07:23 +00:00
parent dd3b58e2f3
commit 638291128c
@@ -20,7 +20,7 @@ DESC=odoo
CONFIG=/home/pi/odoo/addons/point_of_sale/tools/posbox/configuration/odoo.conf
LOGFILE=/var/log/odoo/odoo-server.log
PIDFILE=/var/run/${NAME}.pid
MODULES=$(ls /home/pi/odoo/addons/ -m | tr -d ' ')
MODULES=$(ls /home/pi/odoo/addons/ -m -w0 | tr -d ' ')
USER=pi
test -x $DAEMON || exit 0