erplibre/script/addons
Mathieu Benoit e75ab8b128 [FIX] addons: browse the leftovers by integer, not by the string psql gave
Deleting the leftovers failed on « the database search does not have the
ids (('4457',)) and has extra ids ((4457,)) ». psql returns text; the ids
went into browse() as strings, Odoo compared them against integers, found
nothing and refused the whole batch.

Nothing was lost: the backup runs before the deletion, and the tool said
plainly that nothing was removed. Measured after the fact — 15 files
saved, 15 attachments still in database.

--- FR ---

[FIX] addons : parcourir les restes par entier, pas par la chaîne de psql

L'effacement échouait sur « la recherche en base n'a pas les identifiants
(('4457',)) et a des identifiants supplémentaires ((4457,)) ». psql rend
du texte ; les identifiants partaient dans browse() en chaînes, Odoo les
comparait à des entiers, ne trouvait rien et refusait tout le lot.

Rien n'a été perdu : la sauvegarde précède l'effacement, et l'outil a dit
franchement que rien n'avait été retiré. Vérifié après coup — 15 fichiers
sauvegardés, 15 pièces jointes toujours en base.

Assisted-by: Claude Opus 5
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: browse the leftovers by integer, not by the string psql gave 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