Skip to content

[MIG] base_export_async: Migration to 17.0#894

Open
StephaneMangin wants to merge 62 commits intoOCA:17.0from
acsone:17.0-mig-base_export_async
Open

[MIG] base_export_async: Migration to 17.0#894
StephaneMangin wants to merge 62 commits intoOCA:17.0from
acsone:17.0-mig-base_export_async

Conversation

@StephaneMangin
Copy link

No description provided.

apineux and others added 30 commits February 11, 2026 11:00
Currently translated at 100.0% (19 of 19 strings)

Translation: queue-12.0/queue-12.0-base_export_async
Translate-URL: https://translation.odoo-community.org/projects/queue-12-0/queue-12-0-base_export_async/de/
Currently translated at 100.0% (19 of 19 strings)

Translation: queue-12.0/queue-12.0-base_export_async
Translate-URL: https://translation.odoo-community.org/projects/queue-12-0/queue-12-0-base_export_async/zh_Hans/
The UI still send it to the current user, but it will allow
reusing the module for other purposes: plan a regular export
to users.

Setting the recipient_ids instead of the email_to in mail.mail means
that we can still send the email, it will stay in the failed emails,
allowing to correct the user.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: queue-12.0/queue-12.0-base_export_async
Translate-URL: https://translation.odoo-community.org/projects/queue-12-0/queue-12-0-base_export_async/
oca-ci and others added 21 commits February 11, 2026 11:00
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: queue-15.0/queue-15.0-base_export_async
Translate-URL: https://translation.odoo-community.org/projects/queue-15-0/queue-15-0-base_export_async/
Currently translated at 100.0% (22 of 22 strings)

Translation: queue-16.0/queue-16.0-base_export_async
Translate-URL: https://translation.odoo-community.org/projects/queue-16-0/queue-16-0-base_export_async/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: queue-16.0/queue-16.0-base_export_async
Translate-URL: https://translation.odoo-community.org/projects/queue-16-0/queue-16-0-base_export_async/
Currently translated at 100.0% (22 of 22 strings)

Translation: queue-16.0/queue-16.0-base_export_async
Translate-URL: https://translation.odoo-community.org/projects/queue-16-0/queue-16-0-base_export_async/it/
Currently translated at 100.0% (22 of 22 strings)

Translation: queue-16.0/queue-16.0-base_export_async
Translate-URL: https://translation.odoo-community.org/projects/queue-16-0/queue-16-0-base_export_async/it/
Currently translated at 100.0% (22 of 22 strings)

Translation: queue-16.0/queue-16.0-base_export_async
Translate-URL: https://translation.odoo-community.org/projects/queue-16-0/queue-16-0-base_export_async/fr/
As normal user only have read access to delay.export, we need sudo to chreate an attachment on this record

Use user 6 (Marc Demo) in the tests, not admin (2)
@StephaneMangin StephaneMangin force-pushed the 17.0-mig-base_export_async branch 2 times, most recently from 23aae56 to 5081777 Compare February 11, 2026 14:09
@StephaneMangin StephaneMangin force-pushed the 17.0-mig-base_export_async branch from 5081777 to df3c23e Compare February 11, 2026 14:13
@StephaneMangin StephaneMangin marked this pull request as ready for review February 11, 2026 14:15
@StephaneMangin
Copy link
Author

@yvaucher @hbrunn @hhgabelgaard @asierneiradev
Hi guys, a little up about this module migration.
Thanks a lot in advance for your reviews.

@hhgabelgaard
Copy link

@StephaneMangin On runboat the queue jobs fails with:

Traceback (most recent call last):
File "/mnt/data/odoo-addons-dir/queue_job_cron_jobrunner/models/queue_job.py", line 69, in _process
job.perform()
File "/mnt/data/odoo-addons-dir/queue_job/job.py", line 516, in perform
self.result = self.func(*tuple(self.args), **self.kwargs)
File "/mnt/data/odoo-addons-dir/base_export_async/models/delay_export.py", line 83, in export
content = self._get_file_content(params)
File "/mnt/data/odoo-addons-dir/base_export_async/models/delay_export.py", line 65, in _get_file_content
return xls.from_data(columns_headers, import_data)
File "/opt/odoo/addons/web/controllers/export.py", line 596, in from_data
with ExportXlsxWriter(fields, len(rows)) as xlsx_writer:
File "/opt/odoo/addons/web/controllers/export.py", line 189, in init
request.env['res.currency'].search_read([], ['decimal_places'])]
File "/opt/odoo-venv/lib/python3.10/site-packages/werkzeug/local.py", line 432, in get
obj = instance._get_current_object()
File "/opt/odoo-venv/lib/python3.10/site-packages/werkzeug/local.py", line 554, in _get_current_object
return self.__local() # type: ignore
File "/opt/odoo-venv/lib/python3.10/site-packages/werkzeug/local.py", line 226, in _lookup
raise RuntimeError("object unbound")
RuntimeError: object unbound

which probably has nothing to do with this PR, but makes it hard to review - But normal export does work on runboat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.