float precision
Bug #352471 reported by
Eduard Carreras i Nadal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When you define a fields.
This occurs because de _symbol_c = %f has only 6 decimal precision.
_symbol_c should get the precision of the digits parametter.
The attached patch solves the problem.
To post a comment you must log in.
Hello,
It seems like everything is working fine.
I have defined one field in class as fields. float(' Fees',digits= (13,12) ),
'fees':
In database I am getting
fees | numeric(13,12) |
and in database table value is
select * from student_student; ------- ---+--- ------- ------- ------- --+---- ------- ------- ------- ---+--- ------- -+----- ------- +------ -+----- ----+-- ------- -------
| address_id | name | roll_no | fees
----+--
| 2 | husen | 1 | 1.111111111110
can you please check it again by creating new database?
Thanks.