I have a custom report template with header and footer. I extended this header from "web.external_layout_header". In that, I have written some code in there
<template id="header_ext_inherit" inherit_id="report.external_layout_header">
<xpath expr="//div[@name='company_address']/span" position="replace"/>
<xpath expr="//div[@class='header']" position="inside">
<div><br/><br/><br/></div>
<div style="margin-left:52px;margin-top:57px;">
<---some code---->
</div>
</xpath>
</template>
So It basically prints every page in all documents just like (Sale, Purchase, Invoice and etc..)
So, My question is that how to print only first page not every page?
Hope this will helps you: http://learnopenerp.blogspot.com/2018/10/how-to-add-custom-header-and-footer-in-qweb-reports-in-odoo.html