Contributors mailing list archives

contributors@odoo-community.org

Some help please - Webkit Reports asset loading

by
Open for Small Business, Graeme Gellatly
- 20/03/2019 11:53:16
Hi,

I have an issue with webkit reports.

Sometimes the assets simply don't load fast enough, particularly after a new worker is spawned, so the first report out is maybe 60% of the time missing its styling. But everything after prints just fine.

Does anyone know how to configure/code a wait or something until the assets are loaded. I've looked and can't even work out where exactly to start.

The reports are printing on a server action (Sale Order confirmation generally sets them off, but actually on individual models, with individual actions), triggered with delay from OCA queue_job, direct to printer using base_report_to_printer. V12.

I've tried passing commit_assetsbundle in context but it makes no difference.