Thank you
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Dự án
- MRP
Câu hỏi này đã bị gắn cờ
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
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
|
1
thg 8 23
|
2294 | ||
|
|
1
thg 3 20
|
5058 | ||
|
how to customize Qweb report
Đã xử lý
|
|
3
thg 9 19
|
6643 | |
|
|
2
thg 7 25
|
34146 | ||
|
|
0
thg 9 22
|
6373 |