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

Hi everybody :)


i'm using hosted Odoo and would know how i can do the following thing:


i have in some views of several modules, custom fields with file upload (binary or pdf viewer).

i would be able to set an auto save of there files in some custom folders in document module.


for exemple:

In maintenance i have a file field for manual i would record in manual folder of documents.

In auto parc i have a file field for insurance file to upload witch i would record in insurance folder

and so on.


thanks by advance for your help :)

Imagine profil
Abandonează
Autor Cel mai bun răspuns

hi, i'm trying to do it with studio, perhaps in action ? to execute code

but i don't know how to do.

if someone know i'll read it carefully :)


Imagine profil
Abandonează
Cel mai bun răspuns

Since I can code, i will think of writing some python to do exactly what you are trying to do.

In the model of interest such as maintenance, auto parc, write onchange method for the field of interest.

In the onchange method, create documents, save it to folder you want (maybe you can hard code folder id/name for simplicity).

I believe you can do this with Odoo studio as well.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mai 17
11539
1
iun. 23
2312
1
apr. 23
11376
1
iun. 22
2636
2
aug. 20
9097