Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Some help please - Webkit Reports asset loading

by
dar
- 20/03/2019 13:11:22
Just quick thoughts, before they go away:

- Maybe you could a cache make serve those assets under that URL
- There is a routing roundtrip involved to fetch those assets. So can it be a routing/network issue? 
- I've the situation when I run under docker and access on localhost. The web_url parameter is set to localhost, but localhost to the docker process is no valid routing, it would be `localhost:8069`. I regularly "fix" this by putting my Computer's IP in this parameter. This is why I could imagine a cache serving those assets should in theory always hit and decouple from any server/worker loading cycle. And if it doesn't, then it's probably indeed a network issue.

BR, David

El mié., 20 mar. 2019, 6:57 a.m., Graeme Gellatly <gdgellatly@gmail.com> escribió:
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.

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference