You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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)
- replace _() with self.env._() (W8161 prefer-env-translation)
- use kwarg form of self.env._() instead of % formatting (W8301
translation-not-lazy); rename %(from)s/%(to)s to %(row_from)s/%(row_to)s
to use as kwargs (from is a Python reserved word)
- remove unused imports (_, api)
- mark BaseImportImport with # pylint: disable=no-wizard-in-models
(TransientModel extends core base_import.import which is itself in
models/, following the upstream convention)
- 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).
0 commit comments