my report layout should be apply for first page only(not the report content file) my problem is , if this report extend for two pages, this report layout is apply to this second page too, but it shouldn't be, i need to remain this laout in this first page only,specially header part , what Can i do? i am using CSS
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
Hi,
To print the header/footer only on the first/last page, you can use the OCA module.
* https://odoo-community.org/shop/report-qweb-element-page-visibility-2192
After installing the module, use the first-page or last-page class.
Header
<div class="header">
<div class="first-page">
<div class="row">
<img t-if="company.custom_report_header"
t-att-src="image_data_uri(company.custom_report_header)"
alt="Logo" width="100%"/>
</div>
</div>
</div>
Footer.
<div class="footer o_standard_footer">
<div class="last-page">
<div style="width: 100%;">
<img t-if="company.custom_report_footer"
t-att-src="image_data_uri(company.custom_report_footer)"
alt="Logo" width="100%"/>
</div>
</div
</div>
Hope it helps
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
1
ส.ค. 25
|
405 | ||
|
0
ก.ค. 25
|
565 | ||
|
0
ก.ค. 25
|
1190 | ||
|
1
พ.ค. 25
|
1688 | ||
|
1
เม.ย. 25
|
1744 |