On 22. 06. 12 15:23, Amit Parik (OpenERP) wrote: > ** Summary changed: > > - decimal_precision doesn't calculate the last 2 digits after migration from > v5.0 > + decimal_precision done a rounding after two digits even set the decimal > accuracy more then 2 > > ** Changed in: openobject-addons > Assignee: (unassigned) => OpenERP R&D Addons Team 1 > (openerp-dev-addons1) > Hello,
This is not limited to purchases, it is also happening for sales (and other modules). The explanation is quite simple: all prices (with taxes) are calculated by the 'compute_all' function in 'account/account.py'. And there, the decimal precision is HARDCODED to 'Account'. So whatever you set-up for the 'Account' precision, will hold for all other ones (unless of course you set dp=2 for e.g. Purchases and dp=3 for Account, then you will get dp=2 for purchases) Somehow this is reasonable, as why would you keep different levels of precision between accounts and purchases (which eventually end up in 'accounts')? However, at least from a flexibility point of view, things can be improved, and leave the decision on the user. Maybe a discussion on the experts list could add some insight... A simple solution would be to set-up accounts to dp=4; however, this puts 4 decimals on all accounting reports!! regards, Bogdan -- You received this bug notification because you are a member of OpenERP Indian Team, which is subscribed to OpenERP Addons. https://bugs.launchpad.net/bugs/902571 Title: decimal_precision done a rounding after two digits even set the decimal accuracy more then 2 Status in OpenERP Addons (modules): Confirmed Bug description: As reproduce the problem: 1. set decimal precision 4 digit purchases 2. generate a purchase order 3. enter a unit price to 4 decimal in the purchase 4. validate that the total line is not considering the last 2 decimal multiplication To manage notifications about this bug go to: https://bugs.launchpad.net/openobject-addons/+bug/902571/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~openerp-india Post to : [email protected] Unsubscribe : https://launchpad.net/~openerp-india More help : https://help.launchpad.net/ListHelp

