【发布时间】:2017-06-28 19:52:02
【问题描述】:
我在帐户发票报告中添加了一些字段,我想让这些字段仅在“已付款”和“未结清”状态下可见。我怎样才能实现它?
<xpath expr="//span[@t-field='o.amount_total']/../.." position="after">
<t t-if="get_report_setting('print_payment_info', o)">
<tr class="border-black">
<td>Paid to date</td>
<td class="text-right">
<span t-esc="o.amount_total-o.residual" t-esc-options='{"widget": "monetary", "display_currency": "o.currency_id",}'/>
</td>
</tr>
<tr>
<td><strong>Balance amount</strong></td>
<td class="text-right">
<span t-field="o.residual" t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
</td>
</tr>
</t>
</xpath>
【问题讨论】:
-
很好的问题,它对我也有帮助。