i have a loop on dict doc
<t t-if="doc[currency_id] != 'SDG'">
<t t-set="total1" t-value="total1+ doc['tuition']"/>
</t>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
i have a loop on dict doc
<t t-if="doc[currency_id] != 'SDG'">
<t t-set="total1" t-value="total1+ doc['tuition']"/>
</t>
Try this :
<t t-if="doc['currency_id'] !== 'SDG'">
<t t-set="total1" t-value="total1+ doc['tuition']"/>
</t>
This might work.
You can do it as like you are doing in python.
<t t-if="doc['currency_id'] != 'SDG'">
<t t-set="total1" t-value="total1+ doc['tuition']"/>
</t>
it does not work , i get
Error to render compiling AST
KeyError: None
Template: 754
Path: /templates/t/t/div[2]/table/tbody/t[10]/tr/td[3]/t
Node: <t t-if="doc[currency_id] != 'SDG'">
<t t-set="total1" t-value="total1+ doc['tuition']"/>
</t>
Please add currency_id in single quotes.
Create an account today to enjoy exclusive features and engage with our awesome community!
Înscrie-te| Related Posts | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
0
oct. 20
|
3768 | |||
|
4
oct. 19
|
4641 | |||
|
2
feb. 22
|
9210 | |||
|
0
aug. 20
|
4676 | |||
|
1
oct. 22
|
4485 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
<t t-set="total1" t-value="0"/>
<t t-if="doc.currency_id.display_name != 'SDG'">
<t t-set="total1" t-value="total1+ doc['tuition']"/>
</t>
Please stop using user names as tags for your posts.