Commit 4480dcc
Reanova Migration
[MIG] base_import_async: Migration to 19.0
- bump version 18.0.1.0.0 -> 19.0.1.0.0
- installable False -> True
- remove @api.returns("ir.attachment") decorator on _create_csv_attachment
(decorator no longer supported in V19; the method already returns an
ir.attachment recordset, so the decorator was redundant)
- remove module from .pre-commit-config.yaml NOT INSTALLABLE list
- add odoo-addon-base_import_async==19.0.* to setup/_metapackage dependencies
Tested on a V19 install with a 35k-row partner CSV: import is correctly
queued as a queue.job and processed in background. The ir.attachment
returned by _create_csv_attachment is properly linked to the queue
job (res_model="queue.job").
Note: queue_job_cron was dropped from this PR because its
test_queue_job_cron_callback test fails on V19 due to an internal
cr.commit() in ir.cron._callback (V19 forbids commit/rollback inside
TransactionCase tests). That migration needs a separate PR with a
test refactor (savepoint-based or testing-bus-mock based).1 parent ebb87ea commit 4480dcc
4 files changed
Lines changed: 3 additions & 4 deletions
File tree
- base_import_async
- models
- setup/_metapackage
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
0 commit comments