Thanks
This question has been flagged
Hello Santiago,
I hope you are doing great.
You have correctly identified that the Filestore (PDFs and attachments) is missing, which explains why the backup size dropped from 317Mb to 71Mb.
The Root Cause: The issue is in this step: "I restore that database [Odoo 16] using the Odoo 17 UI." The "Restore" button in Odoo 17 is designed to accept Odoo 17 backups. When you force an Odoo 16 backup into it, the system often accepts the data (SQL) but fails to correctly unpack the filestore (attachments) because the version signature doesn't match, resulting in data loss.
Clarification on "Bad Practice": You mentioned that "copy/pasting the filestore is bad practice." Actually, for OpenUpgrade migration, manually moving the filestore is the correct and required procedure. The migration script only updates the database structure; it assumes the files are already sitting in the correct folder.
The Correct Steps to Fix This:
Do not use the Odoo 17 UI to restore.
Extract your Odoo 16 Zip file manually on your computer. You will see a filestore folder and a dump.sql file.
Restore the SQL: Load the dump.sql into the database using the command line.
Move the Files: Copy the extracted filestore folder into your Odoo 17 filestore location manually.
Run OpenUpgrade: Now run the migration script.
Since the files (PDFs) are physically there before the migration starts, Odoo 17 will successfully link to them, and your invoices will be perfect.

CandidRoot Solutions Pvt. Ltd.
Email: info@candidroot.com
Web: https://www.candidroot.com
Hope it helps.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
1
Feb 25
|
88 | ||
|
|
1
Nov 24
|
3453 | ||
|
|
1
Apr 24
|
3391 | ||
|
|
1
Aug 20
|
9750 | ||
|
|
4
Feb 18
|
11119 |