This commit is contained in:
Oliver
2026-02-15 17:18:32 -03:00
parent 38873facc0
commit a48789ec66
9 changed files with 197 additions and 7 deletions

30
app/sbin/ODOO_19/listModules Executable file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
export PATH=/4PROJECTS/bin:$PATH
if [ ! -n "$1" ]; then
echo "Missing Parameters <UUID>"
exit 0
fi
UUID=$1
source /4server/sbin/helpers
get_contract_info
# Query installed Odoo modules and output as CSV (disable pager for non-interactive use)
PGPASSWORD="$POSTGRES_ADMIN_PASSWORD" PAGER= psql \
-h "$POSTGRES_HOST" \
-U "$POSTGRES_ADMIN_USER" \
-p "$POSTGRES_PORT" \
-d "$UUID" \
--csv \
-c "
SELECT
name,
latest_version,
author,
summary
FROM ir_module_module
WHERE state = 'installed'
ORDER BY name;
"