Skip to content

Commit 71436fe

Browse files
committed
feat(odoo_scripts): enhance uninstall script with colored warning output and module state feedback
- Updated `docker-odoo-uninstall` script to display a colored warning message before uninstalling each module - Preserved existing functionality for checking module state before removal - Improved visual feedback and user experience during the uninstall process - Maintains alignment with existing script standards and reliability improvements
1 parent 968fb4b commit 71436fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/odoo_scripts/files/docker-odoo-uninstall

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ IFS=',' read -ra MODULES <<< "$modules"
5555
for module in "${MODULES[@]}"; do
5656
module=$(echo "$module" | xargs)
5757
[[ -z "$module" ]] && continue
58-
59-
echo "Removing module '$module' on database '$database' on container '$container'."
58+
W
59+
echo -e "\033[38;5;214mWarning:\033[0m Removing module '$module' on database '$database' on container '$container'."
6060
docker exec $container /bin/bash -c "
6161
echo \"module = self.env['ir.module.module'].search([('name', '=', '$module')]);
6262
print('Module state:', module.state if module else 'not found');

0 commit comments

Comments
 (0)