Thank you
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Buchhaltung
- Lager
- PoS
- Projekte
- MRP
Diese Frage wurde gekennzeichnet
Hi,
Unfortunately, Odoo 19 Studio has limitations that prevent you from directly printing multiple selected records on a single page within a report. Studio is designed for basic customizations, and controlling pagination requires modifying the underlying QWeb templates, which is beyond its capabilities.
To achieve the desired result, you'll need to directly modify the QWeb template used to generate the report. This involves identifying the template, editing its XML code to remove elements that force page breaks (like <t t-call="web.html_container"> or <div class="page">), and adjusting the layout to ensure all records fit on one page. Alternatively, you could create a custom action to combine data into a single record for printing, but this is less ideal. For complex scenarios, a custom Odoo module might be necessary. Remember to back up your database before making changes and thoroughly test the modified report. If you're not comfortable with XML and QWeb syntax, consider seeking help from an Odoo developer.
Hope it helps
This happens because each record is wrapped in its own <div class="page">. To print all on one page, just keep one page wrapper and loop through your records inside it. That way, Odoo won’t add page breaks between them.
Tip: duplicate your report in Studio first so you can safely test the layout changes
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
Registrieren| Verknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
|---|---|---|---|---|
|
|
1
Aug. 23
|
2306 | ||
|
|
1
März 20
|
5072 | ||
|
how to customize Qweb report
Gelöst
|
|
3
Sept. 19
|
6650 | |
|
|
2
Juli 25
|
34161 | ||
|
|
0
Sept. 22
|
6394 |