I've been testing digits = (x, y), and the number "y" does not give me problems, since it refers to the number of decimal places, but I know that I use "x". Thanks for the help.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
The optional parameter digits defines the precision and scale of the number.
The precision is the total number of significant digits in the number (before and after the decimal point), the scale is the number of digits after the decimal point.
If the parameter digits is not present, the number will be a double precision floating point number.
Warning: these floating-point numbers are inexact (not any value can be converted to its binary representation) and this can lead to rounding errors. You should always use the digits parameter for monetary amounts.
Example:
'rate': fields.float(
'Relative Change rate',
digits=(12,6) [,
Optional Parameters]),
Thanks a lot : )
merci
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký