Odoo 10报告:在页面末尾打印变量

时间:2019-10-09 08:44:32

标签: qweb

<t t-if="page_index &lt; page_size - 1">
    <tr class="text-right">
        <td colspan="6">
            <strong>Subtotal: </strong>
               <t t-set="subtotal_total" t-value="subtotal_total+l.price_subtotal"/>
               <span t-esc="subtotal_total" t-options="{'widget': 'monetary',
                'display_currency': doc.pricelist_id.currency_id}"/>
        </td>
    </tr>
</t>

我正在尝试在页面末尾打印此变量“ subtotal_total”。如果删除主要的t标签,则累积值会出现在循环的每一行中,但我只想在页面末尾打印。

我已经打印了page_index和page_size,并且总是分别得到0和1常数。

0 个答案:

没有答案