Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I need a different footer on the scond pdf page.
I added this to the footer template
document.getElementsByClassName('test').innerHTML="only on first page";
<t t-if="count() == 1">
only on first page
but this change the text test on all page.
The pdf file has two pages, but the python method count() only called ones.
PDF report uses header,page and footer css class for header/footer display. The following code will generate a 2 page pdf, with different header and footer. You can refer to get_pdf method in addons/report/models/report.py
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 10/23/14, 5:07 AM|
|Seen: 3627 times|
|Last updated: 6/24/16, 7:33 AM|