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

Hello everyone !

In Odoo 10 is there a way to increase the number of decimals for the volume in a product form ? By default the decimals is set to 2 and I need to set it to 4 digits.


Thanks a lot!

Michael

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

In my view, you should be able to do this by navigating to Settings >> Technical >> Decimal Accuracy (Database Structure) and from there you should be able to set the Usage and Digits.

Otherwise, set the field you want technically :

your_field = fields.Float(digits=(16, 4))
Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Thanks for your reply Miracle the technical solution works for me.

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