odoo 打印格式中 打印第一个数据默认

<table style="width:100%;">
<tr>
<td style="word-wrap:break-word;width:20%;font-size:18">供应商:<span t-field="o.partner_id"/></td>
<td style="word-wrap:break-word;width:38%;font-size:18">日 期:<span t-field="o.date" t-field-options='{"widget": "date", "datetime": "o.date_order"}'/></td>
<td style="word-wrap:break-word;width:20%;font-size:18">税 码:</td>
<td style="word-wrap:break-word;width:20%;font-size:18">订单编号:<span t-field="o.name"/></td>
</tr>
<tr>
<td style="word-wrap:break-word;width:20%;font-size:18">
<t t-foreach="o.partner_id" t-as="partner_id" class="gxtr">
<t t-set="j" t-value="0" />
联系人:
<t t-foreach="partner_id.child_ids" t-as="child_ids" class="gxtr">
<t t-if="j==0">
<span t-field="child_ids.name"/>/<span t-field="child_ids.mobile"/>
<t t-set="j" t-value="j+1" />
</t>
</t>
</t>
</td>
<td style="word-wrap:break-word;width:20%;font-size:18">传 真:<span t-field="o.partner_id.fax"/></td>
<td style="word-wrap:break-word;width:38%;font-size:18">电 话:<span t-field="o.partner_id.phone"/></td>
<td style="word-wrap:break-word;width:20%;font-size:18">手 机:<span t-field="o.partner_id.mobile"/></td>
</tr>
<tr style="height:10"></tr>
</table>
上一篇:[转帖]Centos7 yum安装Chrome浏览器


下一篇:Visual Studio2017中如何让Entity Framework工具【ADO.NET实体数据模型】支持MYSQL数据源