Problem with filestore and ir_attachment Odoo 15

375 Views Asked by At

Good morning, I would like to post a doubt, I'm migrating my Odoo 10 to Odoo 15, I copied the filestore folder to my Odoo 15.

The problem is the next one, I have a custom module called hr.inventario, this module has 200 PDFs stored, I could import all the PDFs from ir_attachment with CSV but not the datas field, and I imported all my records from hr.inventario with that attachments linked to the records, but I can't access to the content of the PDFs.

Is it possible to generate the data of the PDFs reading the store_fname? Any other solution to generate the binary data from the filestore?

I tried exporting the data content with CSV but it gives me an importing error every single time: "Unknown javascript error token <"

1

There are 1 best solutions below

0
aekis.dev On

If you have copied ok the filestore to the database folder of the new database and the records or inserted ok into ir.attachment table having the name and store_fname already there... you should be seeing everything ok, check the files permissions and double check the paths stored in the database against the filestore/db_name/paths