Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
624 มุมมอง

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 :)

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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 :)


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 17
11543
1
มิ.ย. 23
2312
1
เม.ย. 23
11380
1
มิ.ย. 22
2638
ERROR: Field does not exist แก้ไขแล้ว
2
ส.ค. 20
9099