跳至內容
選單
此問題已被標幟

consider these fields in a QWeb template:

<t t-set="tiempo" t-value="r.saida-(r.saldo/100)"/>
</t>
    <tr>
        <td colspan="7" class="align-center" align="center">
            <b>Tienes <span t-esc="tiempo"/> dias de cash</b>
        </td>
    </tr>

Here, tiempo is just a field I've set up on QWeb view, which makes a little arithmetic operation.

Doesn't exist on model, but saida and saldo do exist, so, is there a possibility to add this tiempo to an email template?

I mean without creating this very same operation on model?


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
5月 17
5610
0
1月 25
1184
1
10月 16
6655
0
5月 20
3107
0
5月 17
4179