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

Hi,

I need to format some calculated fields in the Cost Analysis Report of the mrp module.

These fields should have a precision of 5 digits and are calculated in the report.

Do you have tips ?

Ảnh đại diện
Huỷ bỏ

in db structure there is decimal accuracy, look for the keys if you have anything works for you there. if not, you might need to alter the views/models.

Câu trả lời hay nhất

try this

use this in q-web 

<span t-esc="'%.5f'%(field_name)" />
Ảnh đại diện
Huỷ bỏ