Heads-upHighlight of Weekly #004

upgrade_code scripts are now tested

Every upgrade_code script now runs in the test suite, so the scripts that rewrite custom code for new versions keep working. Use the '# test: false' and '# test: skip' markers for scripts that can't be tested this way.

Versions19.020.0
AppFramework & technical

On the upgrade checklist: 18.0 → 19.0

Pull requests and commits

BranchPull requestCommit
19.0odoo/odoo#294164 ↗ea190f52c4 ↗
20.0odoo/odoo#295790 ↗6d5b0ddd54 ↗

Commit message

[IMP] core: test upgrade_code

Add tests for upgrade code. Running these scripts ensures they continue
working in newer versions and that we don't introduce legacy code.

There are some possible exceptions:
- `# test: false` marker indicates that a migration may produce false
  positives, so changes to files are not breaking
- `# test: skip` marker skips the test. A simple use case would be an
  extremely verbose script or a one-time migration which destroys data.


Related: odoo/enterprise#135092

My stack

Pick the versions and apps you run. Weekly digests, this week's table and All changes then show only what concerns you. Saved in this browser.

Versions
Apps
Modules