Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
443 Widoki

Hi all,

Maybe this is so simple that I am overlooking it. How would I retain the original file dates while importing files to Odoo? I am interested in the import date too (like now), but this is not my first concern. I would like Odoo to keep (and show) the original file date which of course could be ages ago...

Best regards

Awatar
Odrzuć
Autor

Hello Rani,

Thanks for the hints! Would this work for the Documents app, too? I managed to establish a new column "File Modification Date" and it does show and accept calendar dates. Now where would I find the create method to be called on adding a new document?

Thanks in advance!


Najlepsza odpowiedź

Hi,

By default, Odoo does not preserve a file’s original creation or modification date when importing; it only records the upload date (create_date). If you want to keep the original file date, you need to add a custom field on attachments or documents. This can be done manually during import (via CSV), through a small customization that extends ir.attachment to capture the file’s metadata automatically, or in the Documents app by adding a custom property such as Original File Date. In short, Odoo always records when a file is uploaded, but retaining the original file date requires an extra field and configuration.


Hope it helps

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,
All files and their data are in the [Developper mode activated] 
→ settings > Technical > Attachements > open a file and you have the create date visible there.

I just verified and the files has a date field you can place on the list view (attachements)

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
paź 25
7
0
wrz 25
1
0
wrz 25
1
0
wrz 25
2
0
wrz 25
2