创建一个可以在报表的每一页上重复的 div奥多11

问题描述

我想知道是否可以创建一个块(div),它可以在报告的所有页面上重复,而无需在页眉或页脚中重复,仅用于发票报告?

        <template id="account.report_invoice_document">
            <t t-call="web.external_layout">
                <t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)" />
                <div class="page">
                    <div class="row">
                        <div name="invoice_address" class="col-xs-5 col-xs-offset-7">
                            <address t-field="o.partner_id"
                                t-options='{"widget": "contact","fields": ["address","name"],"no_marker": True}' />
                        
                        </div>
                    </div>
                </div>
            </t>
                  .....
          
        </template>

           <template id="report_invoice">
            <t t-call="web.html_container">
                <t t-foreach="docs" t-as="o">
                    <t t-call="account.report_invoice_document" t-lang="o.partner_id.lang"/>
                    <t t-call="my_module.my_own_layout"/>
                </t>
            </t>
        </template>


  

  <template id="my_own_layout">
        <!-- Multicompany -->
        <t t-if="o and 'company_id' in o">
            <t t-set="company" t-value="o.company_id"></t>
        </t>
        <t t-if="not o or not 'company_id' in o">
            <t t-set="company" t-value="res_company"></t>
        </t>
        <t t-call="my_module.my_own_layout_div"/>
        <t t-raw="0"/>
    </template>
    <template id="my_own_layout_div">
            <div>
                <h1>Here is div repeated in every page.</h1>
            </div>
    </template>

谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)