Skip to Content
Menu
This question has been flagged
3 Replies
5686 Views

Hello,

How I can change tje Decimal Accuracy on the report on odoo ? The unit price is right with 2 decimal but the amount is only with 1 decimal.

But the confiugation in the menu Decimal Accuracy is right.

Subtotal and Total are false too.

Regards,

Vincent

Avatar
Discard
Best Answer

In RML,
<para>[[ formatLang(o.amount_tota lor 0.0, digits=get_digits(dp='Account')) ]]</para>

In MAKO,
<td class="amount"width="6%">${formatLang(o.amount_total or 0.0,digits=get_digits(dp='Account'))}</td>

In Q-Web,
<span t-esc="formatLang(o.amount_total or 0.0, digits=get_digits(dp='Account'), currency_obj=res_company.currency_id)"/>
 

Avatar
Discard
Best Answer

You can use also   <span t-esc='"%0.2f" % o.amount_total'/>

Avatar
Discard
Author Best Answer

Hello,

Thank you for your answer but I can't find this line. I use Q-Web:

<span t-field="l.price_subtotal" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;o.currency_id&quot;}"/>

Where can I change the setting ?

Avatar
Discard
Author

atchuthan any idea ?

Author

Nobody ?

Author

Where I can do that ? (Open Net)

Related Posts Replies Views Activity
0
Sep 24
209
0
Mar 18
2657
0
Jul 17
6541
1
Nov 16
1814
1
Jan 16
3131