Hi.
I added a custom field named "Needed" in "budget.lines" in "Accounting>Budget".
I need to customize the QWeb report, by adding "Needed" field in the associated QWeb view :
<thead>
<tr>
<th>Description</th>
<th>Needed</th>
<th class="text-right">Theoretical Amt</th>
<th class="text-right">Planned Amt</th>
<th class="text-right">Practical Amt</th>
<th class="text-center">Perc(%)</th>
</tr>
</thead>
So, when I try to show the value of this custom variable ('x_needed'), I get "500: Internal Server Error" :
"x_needed" while evaluating
"formatLang(line['x_needed'], dp='Account', currency_obj=res_company.currency_id)"
Can someone help me to solve this problem please :
<tr t-foreach="funct(o, data['form'])" t-as="line">
<td>
<span style="color: white;" t-esc="'... '*(line['status'] - 1)"/>
<span t-esc="line['name']"/>
</td>
<td>
<span t-esc="formatLang(line['x_needed'], dp='Account', currency_obj=res_company.currency_id)"/>
</td>
<td class="text-right">
<span t-esc="formatLang(line['theo'], dp='Account', currency_obj=res_company.currency_id)"/>
</td>
Thank you in advance.