İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
5962 Görünümler

The default reports from Odoo, if you have a long PO or SO, the headers of the table with the orderlines in a PO are repeated on every new page.

While for a SO, the headers are not repeated.


It is a bit strange that the behavior is different.


Where exactly this function of repeating the header of the table is in the report xml ?

Avatar
Vazgeç
Üretici En İyi Yanıt

Quite often you find the answer just when you posted it ...

https://github.com/odoo/odoo/blob/6dd19cdd8ccd98ebb5985ac2507fbbfa529a68d5/addons/sale/report/sale_report_templates.xml#L68-L69

Avatar
Vazgeç

Many thanks, I was just loking for this!

En İyi Yanıt

I faced this issue in Odoo 15 and I found solution for it by doing the following:

1- Use the basic_layout (recommended) or you can use html_container instead of external_layout


2- Then add div with class="page" and add in this div everything you want to repeat, something like the below:

               

                   

                       

                           

                               

                               

                               

                           

                       

                       

                           

                               

                               

                               

                            

                       

                   

Column header 1Column header 2Column header 3

               


















Column header 1 Column header 2 Column header 3


After you restart your server and upgrade your module, when you print the report the header should be displayed repeatedly on each page.

I hop this helps you, thanks 

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Ağu 25
2998
1
Nis 25
4423
1
Nis 24
1805
0
Nis 24
1810
1
Şub 24
5109