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 to have headers report specific, I know I can inherit standard header and customize that but it becomes global header, If I inherit header in both reports it prints in one only which loads later ( later report replaces previous header). how can I have report spcific headers?
You actually have two options. The first is to create a new header template in the module reports, in the file layouts.xml (addons/report/views/layouts.xml). For example:
<img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % company.logo" style="max-height: 45px;"/>
<!-- All your custom code here -->
Which you can then load in your report.
The second option is to use the header element in Odoo. Before the <div class="page"> tag you can then do this:
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: 11/24/14, 9:40 AM|
|Seen: 12527 times|
|Last updated: 3/16/18, 5:55 AM|