hey ever since we upgraded our odoo to 16, our pdfs, stored in ir_attachment are corrupted, and cant be opened, For example like this: (Cant open file, something went wrong). Anyone got any clues?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
1973
Widoki
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
0
sie 23
|
2323 | ||
|
1
cze 24
|
1642 | ||
|
0
sie 23
|
2920 | ||
|
1
sty 24
|
2060 | ||
|
1
lut 24
|
2354 |
hi,
can you check the log file and see if there is any other hints
it seems like if i look it the database, the old PDFs that are working that where uploaded before odoo 16 have create_uid: 1, and db_datas set to PDF. The new ones have create_uid: 4 and the db_datas is set to BINARY. so it must be some wrong file conversion to binary that is happening. Do you know how to fix this?
Okay, so the new ir_attachment are now stored as base64 strings. If i convert them manually to PDF, they work and can be opened. Now i just need to convert the PDFs each time a user downloads them in odoo i guess. do you know how to do this?