Commit graph

26 commits

Author SHA1 Message Date
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
aa2f78c404 [ADD] addons: uninstall a theme the way Odoo removes one
There was no counterpart to install_addons_theme.sh, so themes were
removed with a plain --uninstall. That takes out the module, not the
theme: it skips _theme_remove(), whose first act is
_reset_default_config() — the call that writes font-number and its
three neighbours into user_values.scss.

Measured on a real 12 -> 13 migration: web.assets_frontend stopped on
« Undefined variable: $o-theme-font-number ». Odoo 12 defined it in
option_font_body_*, dropped in 13.0; only the theme still redefined
it, so removing the theme exposed a frozen 2020 customization.

theme_leftover.py then reports what unloading does not take — 15
attachments on the measured database. It deletes nothing: their
content may be the only trace of a customization.

--- FR ---

[ADD] addons : désinstaller un thème comme Odoo le retire

install_addons_theme.sh n'avait pas de symétrique : on retirait donc
les thèmes par un --uninstall nu. Cela enlève le module, pas le thème
— cela saute _theme_remove(), dont le premier geste est
_reset_default_config(), l'appel qui écrit font-number et ses trois
voisines dans user_values.scss.

Mesuré sur une vraie migration 12 → 13 : web.assets_frontend s'arrête
sur « Undefined variable: $o-theme-font-number ». Odoo 12 la
définissait dans option_font_body_*, supprimés en 13.0 ; seul le thème
la redéfinissait, et le retirer a mis à nu un SCSS figé en 2020.

theme_leftover.py signale ensuite ce que le déchargement ne prend pas
— 15 pièces jointes sur la base mesurée. Il ne supprime rien : leur
contenu peut être la seule trace d'une personnalisation.

Assisted-by: Claude Opus 5
(cherry picked from commit 16a7b1e1333752e2ef603d66f47374a22590d665)
2026-08-22 07:23:59 -04:00
1e731114f5 [IMP] script: update copyright year to 2026
Reflect the current year in all TechnoLibre
license headers across script/, test/, and docker/.

Generated by Claude Code 2.1.74 model claude-sonnet-4-6

Co-Authored-By: Mathieu Benoit <mathben@technolibre.ca>
2026-03-11 23:16:05 -04:00
1b087d25df [ADD] script addons install with debug 2026-01-23 02:57:20 -05:00
c1b9a5fee4 [UPD] format and update license 2025-11-08 23:53:07 -05:00
cbc43fde3c [IMP] todo support odoo upgrade
- add example odoo test
- prevent delete production file with validation
- add makefile with selenium
- script prod to dev uninstall module after installation
- adapt todo with private directory
- script to download remote database
- TODO show documentation for migration
2025-10-31 01:43:26 -04:00
d91c3c2e95 [IMP] support change odoo and python version
- Makefile show version, switch version and install different version
- erplibre_version with odoo_version, poetry_version and python_version
- support multiple docker version
- support odoo 12, odoo 14, odoo 16
- bullseye, bookworm debian
- update latest version
- script update_env_version to detect actual version and refactor it
- adapt file path to support multiple version
- poetry with verbose by default, ignore python keyring
- python script to generate image db with parallel for all odoo version
- check_addons_exist before generate all image
- support delay to change queue parallel
- fix odoo 12 product configurator
- can show demo website
- swith odoo
- force create addons if missing
- update manifest, because gen config break with wrong manifest
2024-11-02 02:26:02 -04:00
5b103eb457 [UPD] script: format script and add licence technolibre 2024-11-02 02:26:02 -04:00
edbf898136 [UPD] script check addons exist: show different error when multiple module
- this permit to know if multiple same module or missing module
- ignore warning when ask for module path
2024-05-03 23:13:59 -04:00
ea9be9b2ca [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
c172c77159 [IMP] script check_addons_exist.py: argument output_path
- output the real path if module exist from configuration
2024-05-03 23:13:59 -04:00
cb3b2fe862 [FIX] script update_prod_to_dev.sh: need install_addons_dev.sh 2023-03-12 17:46:00 -04:00
3f8dfcd392 [ADD] script update_addons_all.sh and update_prod_to_dev.sh
- first script help to update all modules for a database
- second script help to test a production database without affecting it
2023-02-13 18:00:36 -05:00
5d478954f3 [ADD] script install_addons_dev: increase memory when use dev 2023-01-26 00:30:38 -05:00
7ca08b52eb [FIX] script: add missing check variable 2023-01-07 00:30:46 -05:00
cc438c8851 [FIX] script addons: check all return result
- this will give error when execute in parallel
2023-01-07 00:23:15 -05:00
c942fa783f [FIX] run_parallel_cg_template: install module with template
- add test cg_cg
2023-01-07 00:23:07 -05:00
87367d647e [FIX] check_addons_exist: remove blank addons_path 2023-01-06 16:55:27 -05:00
7847229661 [ADD] makefile: run_parallel_cg and run_parallel_cg_template
- use parallel in bash and read txt config
2023-01-05 04:20:43 -05:00
fdbfe05899 [ADD] makefile: generate image DB with parallel
- add logs modules to install into script install_addons.sh

Signed-off-by: Mathieu Benoit <mathben@technolibre.ca>
2023-01-01 03:27:16 -05:00
817fe8eb95 [ADD] script install_addons_theme 2022-05-22 02:34:44 -04:00
7e6fa0ec03 [ADD] test: test.sh script with coverage
- code generator coverage
2022-05-22 02:34:40 -04:00
5065dc2f2a [FIX] test new_project: use temp file for config
- All addons script support config
- script/repo_revert_git_diff_date_from_code_generator support multi repo
2022-02-10 00:53:59 -05:00
24e5cba22b [UPD] makefile: improve test
- prevent makefile cache to ignore test
- update image_db_create_erplibre_base
- add mariadb migrator test
- add helloworld test
- fix other test
- add isort format
- add show log of test
- add clean to remove temporary file
2022-01-24 14:09:17 -05:00
702f419119 [UPD] code_generator need --dev to be installed for secure in prod 2021-06-27 01:24:31 -04:00
76a9a61b1e [ADD] make test 2021-06-27 00:52:18 -04:00