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


    <table style="100%;">
    <tr>
    <td style="word-wrap:break-word;20%;font-size:18">供应商:<span t-field="o.partner_id"/></td>
    <td style="word-wrap:break-word;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;20%;font-size:18">税 码:</td>
    <td style="word-wrap:break-word;20%;font-size:18">订单编号:<span t-field="o.name"/></td>
    </tr>
    <tr>
    <td style="word-wrap:break-word;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;20%;font-size:18">传 真:<span t-field="o.partner_id.fax"/></td>
    <td style="word-wrap:break-word;38%;font-size:18">电 话:<span t-field="o.partner_id.phone"/></td>
    <td style="word-wrap:break-word;20%;font-size:18">手 机:<span t-field="o.partner_id.mobile"/></td>
    </tr>
    <tr style="height:10"></tr>
    </table>
  • 相关阅读:
    HDU 5090 Game with Pearls
    HDU 1394 Minimum Inversion Number
    HDU 1698 Just a Hook
    POJ 2104 K-th Number
    UVA 1160
    HDU 5895 Mathematician QSC
    HDU 3294 Girls' research
    HDU 3068 最长回文
    PyCharm每日技巧-1
    如何一年考过日语一级
  • 原文地址:https://www.cnblogs.com/1314520xh/p/7268899.html
Copyright © 2020-2023  润新知