The error prompt printed « --reset <key> --apply » and left the key to be found in a thousand-line diff. Copying it by hand is where a character goes missing, and a key matching no copy is not an error for the tool: the command runs and does nothing, silently. [3] now asks the tool for the keys, numbers them, and offers « all ». An out-of-range or unreadable answer resets nothing — falling back to « all » would act on what was never asked for. --- FR --- [ADD] migration : choisir la copie COW à réinitialiser dans une liste L'invite d'erreur imprimait « --reset <key> --apply » et laissait retrouver la clé dans un diff de mille lignes. La recopier à la main est l'endroit où un caractère se perd, et une clé ne correspondant à aucune copie n'est pas une erreur pour l'outil : la commande tourne et ne fait rien, en silence. [3] demande désormais les clés à l'outil, les numérote et offre « toutes ». Une réponse hors liste ou illisible ne réinitialise rien — retomber sur « toutes » agirait sur ce qui n'a pas été demandé. Assisted-by: Claude Opus 5 (cherry picked from commit ae08e13fe5bba2b02b8661c67c4024fcd79f29bc) |
||
|---|---|---|
| .. | ||
| check_cow_views.py | ||
| check_stale_scss.py | ||
| check_stale_scss_tui.py | ||
| cow_drift.py | ||
| cow_drift_tui.py | ||
| fix_migration_odoo130_to_odoo140.sql | ||
| fix_migration_odoo140_to_odoo150.py | ||
| neutralize_cow_views.py | ||
| README.base.md | ||
| README.fr.md | ||
| README.md | ||
| reset_stale_cow_views.py | ||
| snapshot_cow_views.py | ||
| uninstall_module_list_odoo140_to_odoo150.txt | ||
Migration
Run this script when doing database migration. Example :
source ./.venv.odoo15.0_python3.8.20/bin/activate && cat ./script/odoo/migration/fix_migration_odoo140_to_odoo150.py | ./odoo15.0/odoo/odoo-bin shell -d DATABASE
Check uninstall_module_list_odoo140_to_odoo150.txt
Module lists to uninstall
Before a version bump, the migration uninstalls the modules listed in
uninstall_module_list_odoo<from>_to_odoo<to>.txt. Two locations are read, the
private one first, and the results are merged (duplicates dropped):
private/odoo/migration/<database>/uninstall_module_list_odooXX0_to_odooYY0.txt— specific to ONE database, not versioned. Which modules must be dropped depends on the data, so this is where nearly every entry belongs.script/odoo/migration/uninstall_module_list_odooXX0_to_odooYY0.txt— shared defaults, versioned, valid for every database.
Syntax: one module per line, with a justification after #. Commas and several
names per line are accepted; blank lines and full-line comments are ignored.
A module without a stated reason is flagged at runtime: removing a module is a
decision someone must be able to review later.
queue_job # blocks 12->13, trigger queue_job_notify
mgmtsystem_hazard # not ported to 13.0
web_syncer # dropped upstream