Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ

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?


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 17
5667
0
ม.ค. 25
1300
Custom Model show on Website แก้ไขแล้ว
1
ต.ค. 16
6719
0
พ.ค. 20
3138
0
พ.ค. 17
4268