【发布时间】:2018-09-23 15:41:07
【问题描述】:
我现在有 PDF 格式的 qweb 报告。但是,如果我的报告(例如销售订单)有多个页面,则标题位于每个页面上。
第一页标题上只显示一个字段。其他字段在每个页眉上重复。 如何仅将一个字段标题放在第一页上? /h3 标签/
谢谢 这是我的代码:
<template id="payment_header">
<div class="header">
<div style="border: 1px solid black;">
<div class="col-xs-3" style="border: 1px solid black;">
<table>
<tr class="text-left">
<ul class="list-inline">
<li>
<span class="page"/>
</li>
<li>/</li>
<li>
<span class="topage"/>
</li>
</ul>
</tr>
<tr>
<span>SHOP:</span>
<span t-esc="warehouse"/>
</tr>
</table>
</div>
<div>
<div class="center">
**<h3 class="text-center">
<font color="white">Payment</font>
</h3>**
</div>
</div>
<div class="col-xs-4 pull-right" style="margin-top:20px; font-size: 12px; border: 1px solid black;">
<span>Period</span>
<span t-esc="date_to" t-field-options="{'format': 'yyyy/MM/dd'}"/> ~
<span t-esc="date_from" t-field-options="{'format': 'yyyy/MM/dd'}"/>
</div>
</div>
</div>
</template>
【问题讨论】:
-
qweb模板源码在哪里?