Report 如何在每个发票页中仅为发票报告打印发票参考?

Report 如何在每个发票页中仅为发票报告打印发票参考?,report,odoo,odoo-10,qweb,Report,Odoo,Odoo 10,Qweb,我需要在标题中的发票报告上显示发票参考。这就像“发票草稿:~AR-2018/0303”。它只在第一页上,我需要在每一页上显示 我试着说:~ <template id="external_layout_header_inherited" inherit_id="report.external_layout_header"> <xpath expr="//div[@class='header']" position="inside"> <div

我需要在标题中的发票报告上显示发票参考。这就像“发票草稿:~AR-2018/0303”。它只在第一页上,我需要在每一页上显示

我试着说:~

 <template id="external_layout_header_inherited" inherit_id="report.external_layout_header">
    <xpath expr="//div[@class='header']" position="inside">
        <div t-if="o.number">Ref.: <span t-field="o.number"/></div>
    </xpath>
</template>

裁判。:
但当我打印其他报告时,就像销售或购买一样,它会影响所有报告


所以,我的问题是,如何在发票报告的第二页开始也打印发票参考?

您的方法是正确的,但在发票报告中,您需要调用一个自定义外部布局,该布局调用这样的自定义标题

<t t-call="report.external_layout_custom">
    <t t-call="report.external_layout_header_custom" />
        <t t-raw="0" />
        <t t-call="report.external_layout_footer_custom" />
    </t>
</t>