Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
101 Näkymät

I have a multi-DB environment, and I have tried various methods to retrieve a functional public URL of an attachment (image but can be a pdf as well), with or without a token. In all versions, as soon as I am logged in, the file is available, but otherwise I get a 404 error.

Now I am trying the simplest way, setting the attachment as public.

att.public is set to True, att.type is set to binary.
att.local_url is /web/image/48414?unique=ecf93128ec52bba345611f66e8bafa806be267bf
I tried to add db=<dbname> and no improvements (I know it's case sensitive, I set it properly)


I am running Odoo 18 Enterprise on Windows (on-premise), behind a Caddy proxy server.

As soon as I am logged in, the file is available, but otherwise, I get a 404 error.

Can anyone help, please?

Thank you,

Liviu

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
helmik. 25
760
0
marrask. 24
1067
1
elok. 25
469
1
heinäk. 25
1130
2
huhtik. 25
921