跳至内容
菜单
此问题已终结
3 回复
6249 查看

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

形象
丢弃
最佳答案

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)"/>
 

形象
丢弃
最佳答案

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

形象
丢弃
编写者 最佳答案

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 ?

形象
丢弃
编写者

atchuthan any idea ?

编写者

Nobody ?

编写者

Where I can do that ? (Open Net)

相关帖文 回复 查看 活动
0
9月 24
1539
0
3月 18
3656
0
7月 17
7940
1
11月 16
3092
1
1月 16
4328