Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

How to solving missing header & footer images in qweb?

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
qwebodooV8
4 Réponses
11953 Vues
Avatar
Mohammed Khamis

I have a problem with header & footer when it be image in pages exceeded on 3 pages I miss the header and footer Although I make upgrade for wkhtmltopdf . please help me for this issue thank you so much

0
Avatar
Ignorer
Avatar
Anil Kesariya
Meilleure réponse

Mohammed Khamis,

There mayb be two possibilities for qweb header when report doesn't give proper report format.

1) When wkhtmltopdf is not successfully installed with proper os compatible version than header and footer doesn't appears in the report. I faced the same issue many time with different os finally in my system ubuntu 12.04.5 with precise version of wkhtmltopdf is working perfectly without any issues.

2) when you customize your header and your report is overlapped with header than you need to set paper format in, that you can extended the header and footer margin.

Hope this will helps you.

Regards,

Anil.


3
Avatar
Ignorer
Avatar
shubham shiroya
Meilleure réponse

If you are experiencing issues with the header and footer not appearing when using images in pages that exceed three pages in the PDF generated by Odoo, here are a few steps you can take to troubleshoot and resolve the problem:

  1. Check the page size and image size:

    • Verify the page size configuration in your Odoo settings. Ensure that it is set to an appropriate size to accommodate the content, including the images.
    • Check the size of the images you are including in the document. Large images may cause layout issues and push the content beyond the page boundaries.
  2. Adjust the header and footer position:

    • In the document template for the header and footer, try adjusting the positioning of the elements to accommodate the larger content.
    • You can use CSS properties like position, top, bottom, left, and right to fine-tune the positioning of the header and footer.
  3. Upgrade wkhtmltopdf to the latest version:

    • Ensure that you have the latest version of wkhtmltopdf installed. You can download it from the official website: https://wkhtmltopdf.org/downloads.html
    • Restart your Odoo server after installing the updated version to apply the changes.
  4. Split the content into multiple pages:

    • If the document content, including images, exceeds the page limits, consider splitting the content into multiple pages manually.
    • You can use Odoo's QWeb templating language to conditionally render the content based on page breaks. For example, you can check the page number and conditionally render headers and footers after a specific page.
  5. Optimize images:

    • If the size of the images is causing layout issues, you can optimize them to reduce their file size without compromising too much on the image quality.
    • Use image editing tools or online image optimization services to compress the images and reduce their file size.
  6. Use external CSS for styling:

    • Instead of relying solely on the header and footer templates, you can define the styles for the header and footer using external CSS files.
    • This approach provides more flexibility in handling layout issues and controlling the positioning of elements.


0
Avatar
Ignorer
Avatar
shaneebkhan
Meilleure réponse

hi, 

hear the problem was installation of wkhtmltopdf 

i have same issue in odoo 16 finally i corrected by proper installation of wkhtmltopdf

first we have to install wkhtmltopdf ubuntu 22 terminal

      1.    apt install wkhtmltopdf

      2. wkhtmltopdf --version 

      whether its 0.12.6 remove and download 0.12.5

      3.wget https://github\\\.com/wkhtmltopdf/wkhtmltopdf/releases/download/0\\\.12\\\.5/wkhtmltox_0\\\.12\\\.5\\\-1\\\.bionic_amd64\\\.deb

     \\\ 4\\\.sudo\\\ dpkg\\\ \\\-i\\\ \\\ wkhtmltox_0\\\.12\\\.5\\\-1\\\.bionic_amd64\\\.deb

sometimes\\\ it\\\ may\\\ error\\\ then\\\ try\\\ to\\\ install\\\ one\\\ or\\\ two\\\ things 

    \\\ 1\\\.wget\\\ http://archive\\\.ubuntu\\\.com/ubuntu/pool/main/o/openssl/libssl1\\\.1_1\\\.1\\\.1\\\-1ubuntu2\\\.1\\\~18\\\.04\\\.22_amd64\\\.deb

   \\\ 2\\\.sudo\\\ dpkg\\\ \\\-i\\\ libssl1.1_1.1.1-1ubuntu2.1~18.04.22_amd64.deb

    3.sudo apt-get install xfonts-75dpi

    4.sudo apt-get update

    5.apt --fix-broken install


finally confirm  the "wkhtmltopdf version is  0.12.5"

0
Avatar
Ignorer
Avatar
Mariusz Rajfura
Meilleure réponse

This is not solution for Your problem, but it may help (v8,qweb).

I had "strange" effects with usage of wkhtmltopdf in different versions e.g. visible/invisible headers. After many tries with instalations of clean odoo, I have seen, that view of generated report depended ALSO on update module "report" but NOT ONLY version of wkhtmltopdf. Of course module "report" was not modified.

Use option:

--update=report

I work on debian (8, little 7). All versions of wktmltopdf I have got from its home page. I am newbie in odoo.

0
Avatar
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
Set maximum displayed rows table in qweb
qweb odooV8
Avatar
Avatar
1
janv. 19
10455
QWebException: ('MissingError', u'One of the documents you are trying to access has been deleted, please try again after refreshing.')
qweb odooV8
Avatar
0
oct. 17
4272
odoo v8 qweb report page subtotal
qweb odooV8
Avatar
0
nov. 16
3496
Qweb report, center header in landscape and portrait
qweb odooV8
Avatar
0
oct. 16
5711
How to costum my report?
qweb odooV8
Avatar
0
août 16
3703
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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