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

I would like to add more decimal places when creating a BOM. For example, if my product uses 0.004 units of material, this will be automatically rounded to 0.00. If I manufacture 1,000 units, it is sill 0.00 for that material. It should however be 4. Is there an easy solution for this in Odoo?  

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

You can change the decimal accuracy for "Product Unit of Measure"  from 2 digits to more digits but this will change all fields using this decimal accuracy like qty field sale order line, purchase order line  and others.

You can change the accuracy by enabling developer mode then Go to settings and then from Technical menu under Database structure > select  decimal accuracy and then open  " Product Unit of Measure"  and change digits from 2 to the number you need.

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

That's great! Thanks for the help.

The only area I really do not want to show the extra decimal places is the printed forms I send to my vendors and partners. On most forms, there is a "float" widget set on the unit integer so it shows no decimal places.

However my quotation/order form is not allowing this. I get the error message:

Error while validating view:

Element '<xpath expr="/t[1]/t[1]/t[3]/t[1]/div[1]">' cannot be located in parent view

Any idea how to remove the decimal places on the unit quantity for the sales order form?

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 1 25
1495
Cost Break Up Đã xử lý
2
thg 5 24
1370
3
thg 1 24
1624
0
thg 9 23
1785
1
thg 5 23
2804