Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
6216 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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 ?

Ảnh đại diện
Huỷ bỏ
Tác giả

atchuthan any idea ?

Tác giả

Nobody ?

Tác giả

Where I can do that ? (Open Net)

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 24
1518
0
thg 3 18
3613
0
thg 7 17
7900
1
thg 11 16
3059
1
thg 1 16
4281