Generic Rounding trouble into OpenERP
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi !
I have a doubt about how OpenERP handle all rounding problematic. I think we have a trouble here which is linked to lots of other bug report. We always find a way to have a work around, but at the end, we may be must make something :)
All the trouble comes from rounding the float on X digits, according to price_accuracy. I think we should not round a float at all, but use the type Decimal in python to handle that rounding. Overall when we discuss about multi-currency accounting...
We have also unused filed into the currency, like "computation accuracy", and a "rounding" precision which is used instead of price_accuracy sometimes. So what is used where ? I think sometimes we take the price_accuracy, sometimes we take the rounding precision of the currency... It's not clear and I think we should review all of this.
I put here all reported bug I've seen talking about that:
Foreign currency invoice:
https:/
Rounding Tax:
https:/
Residual amount in invoice:
https:/
Rounding regression:
https:/
Accuracy of float values doesn't match price_accuracy :
https:/
Comments and ideas welcome,
Regards,
I'll encode a blueprint for 5.2