Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Discuss
    • Kecerdasan Buatan
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Manajemen Properti
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Konsultasi
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

Open Upgrade: Attachments (Invoice PDF's) lost when upgrading Odoo 16 to Odoo 17.

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
restore
2 Replies
1916 Tampilan
Avatar
Santiago Carbonell Forment
I'm trying to migrate a Odoo16 to Odoo17 database using OpenUpgrade and its working fine, but the attached pdf in invoice sales are lost. I though that when you migrate, you always lose that attached file and if you delete from the invoice sales and recreate a new one and it's working but I've realized that the problem is with the restored database:

When I backup my database from Odoo16 from the UI using the complete zip is 317Mb. Then, I restore that database and migrate using OpenUpgrade and if then try to rebackup from Odoo17 from the UI using the same complete zip is 71Mb, so where is the space?

I think the problem is when I try to restore the backup from Odoo16 in Odoo17. If I check the space of database filestore and I see that Odoo17 is smallest than the Odoo16 in /home/odoo/.local/share/Odoo/filestore, so something I'm doing wrong in backup and restore using the UI. All both OS has enought space in the disk

I understand, I cannot restore the database in Odoo17 and then copy/paste the same filestore from Odoo16 to Odoo17 and that is a bad practice

What is the right way of restoring an Odoo database? or Why the UI is not restoring in the right way the filestore of the database? Can you help me?

In case it helps, when I restore my client's database from their Odoo16 to my Odoo16, initially from the UI, the whole process is correct and the space in the filestore matches the backup zip file 317Mb.

Thanks

0
Avatar
Buang
Avatar
CandidRoot Solutions
Jawaban Terbai

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:

  1. Do not use the Odoo 17 UI to restore.

  2. Extract your Odoo 16 Zip file manually on your computer. You will see a filestore folder and a dump.sql file.

  3. Restore the SQL: Load the dump.sql into the database using the command line.

  4. Move the Files: Copy the extracted filestore folder into your Odoo 17 filestore location manually.

  5. 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.

Thanks & Regards 

CandidRoot Solutions Pvt. Ltd.
Mobile: (+91) 8849036209
Whatapp: (+91) 8849036209

Email: info@candidroot.com
Web: https://www.candidroot.com

2
Avatar
Buang
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Jawaban Terbai
Hi,

In Odoo, invoice PDFs are stored in the filestore, not in PostgreSQL, and the database only contains references to those files (ir_attachment).
Restoring an Odoo 16 backup directly into Odoo 17 using the UI is not safe; the UI restore process is only reliable when restoring into the same major version, which is why the filestore ends up much smaller.
OpenUpgrade does not delete or drop attachments; it reuses the existing filestore during the migration.
The missing PDFs appear because the filestore was never fully restored, not because the migration removed them; recreating invoices works because new PDFs are generated.
Manually copying the filestore from Odoo 16 to Odoo 17 after restoring the database is bad practice and can break attachment references.
The correct approach is to restore the backup in Odoo 16 first (verifying the filestore size matches the backup) and only then run OpenUpgrade to migrate the database to Odoo 17.

Hope it helps.

0
Avatar
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
The following modules are needed by other modules but have not been defined,
restore
Avatar
1
Feb 25
88
Accident how to restore remove from view
restore
Avatar
Avatar
1
Nov 24
3567
Restore database from flat files only
restore
Avatar
Avatar
1
Apr 24
3454
Howto fully restore a database? (odoo.sh v13) Diselesaikan
restore
Avatar
1
Agu 20
9903
How to Restore and override the same database from its own backup file
restore
Avatar
Avatar
Avatar
Avatar
4
Feb 18
11208
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Karir
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk Slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo adalah software terintegrasi dengan 70+ aplikasi seperti CRM, Akuntansi, Inventaris, Sales, eCommerce, Marketing, POS; plus fitur lokal Indonesia!

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now