콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
5065 화면

I am using Odoo 10 and I cant figure out how to stop a custom float field rounding.

Here is my field box = fields.Float("Yards Per Box")

In Odoo if I put 1.196 into the field it auto rounds to 1.20 how can I stop this on a custom Float field?

아바타
취소
베스트 답변

Use this one

box = fields.Float("Yards Per Box",digits=(12,3))

Hope this will helps you and others.

아바타
취소
작성자 베스트 답변

Thanks what does the (12,3)) stand for. If I have a float field that is 2.17 how do I get it to go to next number 3?

아바타
취소
베스트 답변

thanks for the reply

아바타
취소
관련 게시물 답글 화면 활동
2
9월 23
10099
1
2월 22
7223
2
7월 19
3141
0
11월 18
3041
2
1월 18
7526