İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

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

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

How To Change QWEB Footer Height ( Bottom-Margin ) In Specific Page ( Last Page )

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
qwebwkhtmltopdfpaperformat
1 Cevapla
1391 Görünümler
Avatar
Phu

Hello Everyone,


​ ​Page 1 ​ ​ ​ ​ ​ ​ ​ ​ ​ ​​​Page 2


##################              ##################

#                                    #             #                            ​    ​   #

#        HEADER              #             #         HEADER             # 

#                                    #             #                            ​         #

################## ​ ​ ​ ​##################

#                                    #             #            ​ ​   ​ ​   ​#

#        ARTICLE             #             #        ARTICLE              #       

#                                    #             #                            ​  ​   #

#                                    #             #                              ​      #

#                                    #             #                              ​      #

#                                    #             #                            ​        #

#                                    #             #                              ​      # 

################## ​ ​ ​​##################

#        {blank_space}    # ​ ​ ​​#         Sign Here          #

#    ​ ​ ​ ​   # Footer ​#    ​ ​ ​ ​  # ​ #​ ​ ​ ​ ​  ​#

#       Page number       # ​ ​ ​ ​#       Page number      #

################## ​ ​ ​ ​##################


Here's my Footer

i apply this report_qweb_element_page_visibility oca module 

so my sign section only appear on last page


My problem is the blank space on the first page is there anyway to have dynamic footer height or ( move my signing section to article and make it appear before footer even though my article on the 2nd page only have 1 line of content )
odoo 18


I'm really confuse with wkhtmltopdf 

Please Help, Thank !


​           <div class="footer">

                        <div class="last-page" name="Signing Section">

                            <p>____ Person 1____</p>

                            <p>____ Sign Here ____</p>

                            <p>____ Person 2____</p>

                            <p>____ Sign Here ____</p>

                            <p>____ Person 3____</p>

                            <p>____ Sign Here ____</p>

                            <p>____ Person 4____</p>

                            <p>____ Sign Here ____</p>

                        </div>


                        <div name="display-page-number">

                            Page <span class="page"/> of <span class="topage"/>

                        </div>

                    </div>



0
Avatar
Vazgeç
Avatar
Cybrosys Techno Solutions Pvt.Ltd
En İyi Yanıt

Hi,


It’s really a wkhtmltopdf limitation in Odoo QWeb reports rather than just a CSS issue.


- In Odoo reports, the footer section is fixed-height across all pages (wkhtmltopdf requirement).

- When you use the OCA report_qweb_element_page_visibility module to only show the sign block on the last page, that empty “reserved space” in the footer still exists on all pages, even when hidden,  because wkhtmltopdf allocates it at rendering time.

-That’s why you see the big blank space on page 1, even though the sign area is invisible.


wkhtmltopdf treats the header/footer as static templates, separate from the main content flow.

So the footer height is determined by the tallest footer across all pages. If your last page footer is large (signatures), that height is applied to every page.


Possible solution.


1- Move the signature block into the main body


    Instead of putting the signature in the <div class="footer">, you:

          - Place it in the article/content area.

          - Use report_qweb_element_page_visibility to display it only on the last page.

          - This way, the footer stays small, and the signature’s height does not affect earlier pages.

          - Eg :- <div class="article">

    <!-- your main content -->


    <div class="last-page" name="sign-section">

        <p>____ Person 1 ____</p>

        <p>____ Sign Here ____</p>

        ...

    </div>

</div>


<div class="footer">

    <div name="display-page-number">

        Page <span class="page"/> of <span class="topage"/>

    </div>

</div>


2- Use two different footers

           You can define two footers in QWeb and tell wkhtmltopdf:

         -  Use short footer for all pages except last.

        -   Use tall footer with signatures for the last page.


Hope it helps.

0
Avatar
Vazgeç
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Üye Ol
İlgili Gönderiler Cevaplar Görünümler Aktivite
Report missing header, footer and styling when scheduled Çözüldü
qweb wkhtmltopdf
Avatar
Avatar
Avatar
Avatar
Avatar
7
Şub 19
7221
Report text and header is overlaps when description is too long in QWeb report line.
qweb report wkhtmltopdf
Avatar
Avatar
1
Şub 24
3974
Two paper formats for one report
qweb report paperformat
Avatar
Avatar
Avatar
Avatar
3
May 24
4035
Qweb external link is OK in HTML but KO in PDF
pdf qweb wkhtmltopdf
Avatar
Avatar
1
Eyl 19
8415
Qweb report : Paper-format : What is Output DPI Parameter ? Çözüldü
qweb odoo paperformat
Avatar
Avatar
1
May 19
10797
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة 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, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

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