Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Currency_Rate_Update module not working in Odoo 8.0

By
Garth Mathers
on 12/31/14, 11:50 AM 3,045 views

I have installed the currency_rate_update module in Odoo 8.0 in view of setting up Odoo to automatically download the CAD / USD exchange rate each day. I have set the CAD currency in the Accounting Menu to be the base currency with a rate of 1.0000. Under Companies > My Company > Currency Update Configuration i have set the webservice to use as Bank of Canada, a frequency of 1 day. Then i added the USD currency as the only currency to update using this service. I have checked the "Automatic Update" box. Now, if i click "Refresh Currencies" the exchange rate for today is pulled in and saved as expected. What is not working is the automatic part. I have had the module configured like this for several weeks - but it has never successfully done an automatic update. Only the manual refresh currency rates are in my database.

I have also looked under Settings > Technical > Automation > Scheduled Actions > Currency Rate Update. The "Next Execution Date is incrementing from day to day.....

Is there a log saved somewhere to show why the automatic update is failing? I looked in the /var/odoo/odoo-server.log but do not see anything related to currency updates.

Thanks for your help!

Thank you Fekete - setting the next run field does appear to have fixed this issue. Is there a way to set what time of day the cron job runs? Sorry i can't mark your as the answer - i still don't have enough karma....

Garth Mathers
on 1/7/15, 10:47 AM
1
Fotis Dimanidis
On 1/7/15, 8:04 AM

Can you tell me how you managed to install this module on V8? Thanks

You can download it from https://www.odoo.com/apps/modules/8.0/currency_rate_update/ or you can get the code from https://github.com/OCA/account-financial-tools.

Fekete Mihai
on 1/7/15, 8:07 AM

This is what I downloaded but when I try to import the module through base_import_module I am getting: Error while importing module 'currency_rate_update': '"ValidateError\nField(s) `arch` failed against a constraint: Invalid view definition\n\nError details:\nModel not found: currency.rate.update.service\n\nError context:\nView `Update Rates service`\n[view_id: 739, xml_id: n/a, model: currency.rate.update.service, parent_id: n/a]" while parsing /tmp/tmpgNb2KU/currency_rate_update/view/currency_rate_update.xml:4, near\n\n Update Rates service\n currency.rate.update.service\n \n \n \n \n \n \n \n \n \n '

Fotis Dimanidis
on 1/7/15, 8:11 AM

Most of the people extracts the acrchive in the addons folder, or use directly the repos, so this doesn't give any error...i think it must be something with the base_import_module not interpreting the views ok.

Fekete Mihai
on 1/7/15, 8:17 AM

Most of the people extracts the acrchive in the addons folder, or use directly the repos, so this doesn't give any error...i think it must be something with the base_import_module not interpreting the views ok.

Fekete Mihai
on 1/7/15, 8:17 AM

Just tried the way you suggested and it works fine. Many thanks!

Fotis Dimanidis
on 1/7/15, 8:43 AM

I was also unable to install this module (downloaded from OCA Git repository) I used the command: odoo.py -i currency_rate_update -u base -d database_name -c conf_file_name addons_path was set in the config file: addons_path = /opt/odoo9/odoo9/addons,/opt/odoo9/odoo9/localaddons,/opt/odoo9/odoo9/localaddons/account-financial-tools I get the error WARNING database_name openerp.modules.loading: invalid module names, ignored: currency_rate_update What am I doing wrong?

Olumuyiwa Taiwo
on 11/6/15, 8:57 PM

Downloading the zip from https://apps.odoo.com/apps/modules/8.0/currency_rate_update and extracting into the addons folder as suggested by Fotis worked for me, for v8.0. It doesn't work for v9.0 though.

Olumuyiwa Taiwo
on 11/6/15, 9:51 PM
0
Fekete Mihai
On 1/5/15, 8:40 AM

You have to set the next_run field with the next day value, and the cron will get the service as "To be Updated" and will fetch the rates plus will change the next run with the values from Interval and Interval Period. When the rates are updated or get an error you will see the log on the service form view in Notes fields, otherwise you will have to put the log-level to debug to see the error in the logfile.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 12/31/14, 11:50 AM
Seen: 3045 times
Last updated: 4/10/16, 12:31 PM