Skip to Content
Menu
This question has been flagged
1 Reply
12994 Views

Hi,

i need to modify the decimal precision of my currency rate field on the currency window from 6 to 9. for example the maximum digits allowed in the system is 6 : :3.673100". but i need to change to 9 : "3.673100xxx" I know i can change decimal precision under settings /technical/Database structure/Decimal Accuracy. I have already changed it for discount field, but did not succeed for the currency field. i would appreciate any suggestions on that matter either through setup or customization.

Thank you.

Avatar
Discard
Best Answer

Hello,

We didn't use the decimal precision for currency rate, You can see the code on res_currency.py

'rate': fields.float('Rate', digits=(12,6), help='The rate of the currency to the currency of rate 1').

If you want to set the decimal precision for currency rate you can customize it by yourself also.

Inherit currency rate object and override the same field as follow. import openerp.addons.decimal_precision as dp

'rate': fields.float('Rate', digits_compute=dp.get_precision('Account'), 'The rate of the currency to the currency of rate 1),

Thank you.

Avatar
Discard