如何解决创建一个可以在报表的每一页上重复的 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 举报,一经查实,本站将立刻删除。