erplibre/script/addons
Mathieu Benoit ec6ac3a188 [FIX] addons: stop calling a leftover report a failed command
« Command returned error code: 1 » followed a theme that was removed
correctly. 1 is this toolkit's « there are findings », but the report
was the uninstaller's last command, so its code became the script's;
and the COW check was still read through the capturing executor, which
announces any non-zero code as an error.

The leftovers can now be dealt with instead of only listed: keep by
default, or delete after their content is written to private/. Listing
fifteen attachments and stopping there meant composing an unlink() by
hand, mid-migration, from identifiers read off a screen.

--- FR ---

[FIX] addons : cesser d'appeler « erreur » un rapport de restes

« Command returned error code: 1 » suivait un thème correctement
retiré. 1 veut dire « il y a des constats » dans cet outillage, mais le
rapport était la dernière commande du désinstalleur, donc son code
devenait celui du script ; et la vérification COW passait encore par
l'exécuteur qui capture, lequel annonce tout code non nul comme une
erreur.

Les restes peuvent désormais être traités, pas seulement listés :
garder par défaut, ou effacer après écriture de leur contenu sous
private/. Lister quinze pièces jointes et s'arrêter là revenait à faire
composer un unlink() à la main, en pleine migration.

Assisted-by: Claude Opus 5
(cherry picked from commit 304ce32b2680e3d01e38c3224bb85c2798cd6f53)
2026-08-22 07:23:59 -04:00
..
check_addons_exist.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
coverage_install_addons.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
coverage_install_addons_dev.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
coverage_install_addons_restore_dev.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
install_addons.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
install_addons_cg_template_restore_dev.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
install_addons_debug.sh [ADD] script addons install with debug 2026-01-23 02:57:20 -05:00
install_addons_dev.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
install_addons_from_file.sh [IMP] support change odoo and python version 2024-11-02 02:26:02 -04:00
install_addons_restore_dev.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
install_addons_theme.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
reinstall_addons.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
theme_leftover.py [FIX] addons: stop calling a leftover report a failed command 2026-08-22 07:23:59 -04:00
uninstall_addons.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
uninstall_addons_theme.sh [FIX] addons: stop calling a leftover report a failed command 2026-08-22 07:23:59 -04:00
update_addons_all.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
update_prod_to_dev.sh [IMP] todo support odoo upgrade 2025-10-31 01:43:26 -04:00