I want to print a invoice but when invoice content moves to second page page layout header shouldn't be apply in second page how can i solve this??
this is my layout
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<template id="custom_invoice_layout">
<t t-set="o" t-value="o or doc"/>
<t t-set="company" t-value="company_id or o.company_id or res_company"/>
<div t-attf-class="header o_company_#{company.id}_layout" t-att-style="report_header_style">
<div class="row">
<div class="col-12 mt-4 mb-4 text-center">
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)"
style="max-height: 120px; max-width: 100%;" alt="Company Logo"/>
</div>
</div>
</div>
<div t-attf-class="article o_report_layout_standard o_company_#{company.id}_layout">
<t t-out="0"/>
</div>
<div t-attf-class="footer o_standard_footer o_company_#{company.id}_layout">
<div class="row">
<div class="col-12 text-center">
<img t-if="company.custom_invoice_footer"
t-att-src="image_data_uri(company.custom_invoice_footer)"
style="width:100%; max-height:120px;" alt="Footer Info"/>
</div>
</div>
</div>
</template>
</odoo>