Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

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

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
invoiceqwebreports
3 Odpowiedzi
6200 Widoki
Awatar
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
Awatar
Odrzuć
Yves Nicolas
Autor

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

Awatar
Yves Nicolas
Autor Najlepsza odpowiedź

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
Awatar
Odrzuć
Awatar
Marvin Taboada
Najlepsza odpowiedź

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
Awatar
Odrzuć
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ść
how we design custom report in odoov8.0
invoice qweb reports odooV8
Awatar
Awatar
1
paź 15
6391
How to Change TABLE Format in QWEB reports? With different table Border and Color.? Rozwiązane
qweb reports
Awatar
Awatar
Awatar
Awatar
Awatar
4
sty 25
46143
QWEB Report template has inconsistent row heights (see screenshot)
qweb reports
Awatar
0
paź 24
2307
Qweb reports inconsistent table row height
qweb reports
Awatar
0
paź 24
5
Invoice pdf report from API endpoint is not getting
invoice reports
Awatar
Awatar
1
wrz 24
3082
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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