コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
6236 ビュー

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
1525
0
3月 18
3623
0
7月 17
7902
1
11月 16
3062
1
1月 16
4288