Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
6248 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Autor Nejlepší odpověď

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
Zrušit
Autor

atchuthan any idea ?

Autor

Nobody ?

Autor

Where I can do that ? (Open Net)

Related Posts Odpovědi Zobrazení Aktivita
0
zář 24
1539
0
bře 18
3654
0
čvc 17
7937
1
lis 16
3092
1
led 16
4326