Thank you
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
To pytanie dostało ostrzeżenie
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
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ść | |
|---|---|---|---|---|
|
|
1
sie 23
|
2301 | ||
|
|
1
mar 20
|
5062 | ||
|
how to customize Qweb report
Rozwiązane
|
|
3
wrz 19
|
6644 | |
|
|
2
lip 25
|
34149 | ||
|
|
0
wrz 22
|
6375 |