Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
12682 Weergaven

Hello, I'm new to Odoo 10, we have being using Odoo 8 for a couple of years now. I'm trying to evaluate Odoo 10 to see if it is worthy to pay the update. 

I installed the 10 version (community edition), but I cannot find how to change the currency rate decimal presicion, for Odoo 8 there was an App that you install and it would appear in "Settings -> Database Structures -> decimal presicion", but there is no app or module for 10th version.

We are from Costa Rica, and 1 USD = 555 CRC, and we need at least 9 decimals to make the exchange rate accuracy to work in the right way.

Is there a work around for this?

I really appreciate your help, thanks in advance.

Carlos

Avatar
Annuleer

Thank you very much @axatech01 the file was a little different but I figured it out. It is working now.


Beste antwoord

To work around,

change digits from (12,6) to (12,10).

Find file  vim /usr/lib/python2.7/site-packages/openerp/addons/base/res/res_currency.py  and search for next strings:

1- First Change:

         _columns = {       

'rate': fields.function(_get_current_rate, string='Current Rate', digits=(12,10),                    


2- Second Change:


class res_currency_rate(osv.osv):
        _name = "res.currency.rate"      

      _description = "Currency Rate"
      _columns = {        'rate': fields.float('Rate', digits=(12, 10), help='The rate of the currency to the currency of rate 1'),

Hope It helped.


Avatar
Annuleer
Auteur

Hey man, thank you vary much!!!!

(sorry for the delay on the answer)

Gerelateerde posts Antwoorden Weergaven Activiteit
2
mrt. 18
4296
2
jan. 20
3356
2
jan. 21
6343
1
dec. 20
2896