콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
8405 화면

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....

베스트 답변

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.

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 '

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.

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.

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

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?

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.

베스트 답변

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.

아바타
취소
관련 게시물 답글 화면 활동
1
12월 20
2949
0
11월 18
3753
0
5월 25
594
2
10월 24
1675
1
1월 24
1356