Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
6227 มุมมอง

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)

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ย. 24
1521
0
มี.ค. 18
3616
0
ก.ค. 17
7900
1
พ.ย. 16
3059
1
ม.ค. 16
4284