Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
23262 Vizualizări

Hello all,

We are now able to download an attachement directly with an url like this :

http://ourodoo.com//web/binary/saveas?model=ir.attachment&field=datas&filename_field=name&id=56

But to get the file, user must be connected.

Could we have an url to download an attachment for public user? No need to be connected. If anybody click the url, he gets the file...

Your comments please.


Imagine profil
Abandonează
Autor Cel mai bun răspuns

With the help of this post :

https://www.odoo.com/fr_FR/forum/aide-1/question/problem-with-security-and-ir-attachment-104606


We have now a public user in res.user. This user has only the 'Public' group and the 'employee' group.


Now, the public user can download an attachement only with a url like this :

http://ourodoo.com/web/binary/saveas?model=ir.attachment&field=datas&filename_field=name&id=56


But now that we know that it works well, we can't let the public user with the 'employe' group. So we will make a new module to adjust this. May be we will create a new group and probably we will have to override the Python web controller to meet the needs of our customer.


Imagine profil
Abandonează

Don't forget to vote the answers that help you out to help others

Related Posts Răspunsuri Vizualizări Activitate
0
aug. 24
3606
0
mai 22
3243
0
iun. 19
3284
0
mar. 15
3973
0
mar. 15
4469