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
    Rantai Pasokan
    • 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
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-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
    • Estate Management
    • 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
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
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

Invoices doesnt print correctly post migration from openerp 7 to odoo 8

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
invoiceqwebreports
3 Replies
6195 Tampilan
Avatar
Yves Nicolas

I have successfully migrated my openerp 7 databases to odoo 8.

I am running odoo from docker using the official docker hub image.

Everything is fine except my customer invoices do not print correctly : I have no header and footer at all (all my company information is basically gone.

I guess this is due to the Qweb reporting scheme so I tried to dig a little into that, modifying the reports.

I followed th odoo guide tutorial at http://odoo.guide/odoo-report-design-basics/ which is not very helpfull as I am continuously stuck in server errors with missing documents (see my stack overflow question on the subject http://stackoverflow.com/questions/32078894/impossible-to-create-a-custom-report-in-odoo-8

I tried to modify the external_layout_header manuall to see what happens with no success again.

I need possible tracks to follow from there, either a simple, no python coding required, documentation to understand why the inital installation does not find out the company header information, or a way to find out what actual document is not found by odoo server when the trace says there is a missing document.


Thanks in advance,

0
Avatar
Buang
Yves Nicolas
Penulis

Marvin's answer is unfortunately not the solution. On my "real life system", I have updated the fonts for my company. Preview header/footer on the company page works fine. Just on customer invoices, doing "print-Invoices" does not get the header/footer on the invoices, as if the report structure behind print invoice was not able to get to the RML header. No missing document in that case. Would that be possibly due to RML-QWEB problems in the invoice report? The missing document happens on a sandbox environment I started from scratch and has probably more to do with inconsistent external ids from the report structure I created from scractch following the odoo.guide tutorial..

Avatar
Yves Nicolas
Penulis Jawaban Terbai

Nothing to do with fonts. Docker official image can not manage its way to reports if report.url key is not defined as  http://0.0.0.0:8069 in settings/Technical/Systems parameters/parameters. See https://github.com/odoo/docker/issues/24

0
Avatar
Buang
Avatar
Marvin Taboada
Jawaban Terbai

Hello Yves,

Odoo 8 introduced a new model `res.font` and also a new Many2One relational field at `res.company` that references a particular font record, please see here:

https://github.com/odoo/odoo/blob/8.0/openerp/addons/base/res/res_company.py#L127 

This new field has a default value defined (when no value is provided) but it's not required:

https://github.com/odoo/odoo/blob/8.0/openerp/addons/base/res/res_company.py#L407 

https://github.com/odoo/odoo/blob/8.0/openerp/addons/base/res/res_company.py#L298 

Preexisting `res.company` records in a database migrated from v7 to v8 will have None/null for this field.

New company records will have the field appropriately defined because the create/update form has been updated to set this field:

https://github.com/odoo/odoo/blob/8.0/openerp/addons/base/res/res_company_view.xml#L91 

The missing document error usually appears when code traverses a relational field which is evaluated to None/null.

You may try editing your company record in order to appropriately set the font field and try again.

Please let us know if this fixes your issue.

Regards.

Additional note:

I also noted that font names in templates changed from v7 to v8, most likely by the introduction of the `res.font` model. Compare the following sources, where we have "DejaVu Sans" for v7 and "DejaVuSans" for v8:

https://github.com/odoo/odoo/blob/7.0/openerp/addons/base/res/res_company.py#L271 

https://github.com/odoo/odoo/blob/8.0/openerp/addons/base/res/res_company.py#L303 

And here are their corresponding definitions for v7 and v8:

https://github.com/odoo/odoo/blob/7.0/openerp/report/render/rml2pdf/customfonts.py#L45 

https://github.com/odoo/odoo/blob/8.0/openerp/addons/base/res/res_font.py#L43 

I think you will also need to update your font references to correct them.

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
how we design custom report in odoov8.0
invoice qweb reports odooV8
Avatar
Avatar
1
Okt 15
6390
How to Change TABLE Format in QWEB reports? With different table Border and Color.? Diselesaikan
qweb reports
Avatar
Avatar
Avatar
Avatar
Avatar
4
Jan 25
46139
QWEB Report template has inconsistent row heights (see screenshot)
qweb reports
Avatar
0
Okt 24
2307
Qweb reports inconsistent table row height
qweb reports
Avatar
0
Okt 24
5
Invoice pdf report from API endpoint is not getting
invoice reports
Avatar
Avatar
1
Sep 24
3081
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
  • Tugas
  • 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 ภาษาไทย Türkçe українська Tiếng Việt

Odoo adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

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