Issue 8804

Title
Automatically update currency rates
Priority
feature
Status
resolved
Nosy list
ced, pokoli, reviewbot, roundup-bot, xcodinas
Assigned to
ced
Keywords
review

Created on 2019-11-08.14:01:29 by xcodinas, last changed 2 months ago by roundup-bot.

Messages

New changeset e9be3ad5c9c9 by Cédric Krier in branch 'default':
Add scheduled task to update rates
https://hg.tryton.org/tryton-env/rev/e9be3ad5c9c9
New changeset 2fb24d104afb by Cédric Krier in branch 'default':
Add scheduled task to update rates
https://hg.tryton.org/modules/currency/rev/2fb24d104afb
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2020-12-30.15:42:12

I have started a new review347191002 which include the latest remarks about the design. The design allow to have multiple frequency per currencies and even from different sources. The only advise is to always use the same base currency which I documented. In theory different base currency could work if each currency convertion possible is updated each time.

I also filled https://github.com/MicroPyramid/forex-python/pull/83 in order to ensure to get the proper rate for today.

Author: [hidden] (pokoli) Tryton committer Tryton translator
Date: 2020-08-01.11:15:37
I've added the option to select the source and the frequency allowing both options to be customized. 

Currently forex-python only provides a single value for a day, but if somebody implements other methods that provide multiple values we may add several options for the sources. For example: 

- Service Name (Daily Average)
- Service Name (Daily Opening)

This allows us to keep our desing simple while supporting multiple options.
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2020-07-31.22:59:32
For me, it is missing the pieces described in https://discuss.tryton.org/t/automatically-update-currency-rates/1922/5
This requires a kind of scheduler a little bit like in the sale_subscription module.
Author: [hidden] (pokoli) Tryton committer Tryton translator
Date: 2020-07-31.19:27:13
I've uploaded review321901002 which is updated to tip and has a more modular design to allow to customize the source of the rates.
Author: [hidden] (xcodinas) Tryton committer
Date: 2019-11-08.14:01:29
History
Date User Action Args
2021-02-21 19:31:40roundup-botsetmessages: + msg64756
2021-02-21 19:31:33roundup-botsetmessages: + msg64755
nosy: + roundup-bot
status: testing -> resolved
2021-02-05 21:49:17reviewbotsetmessages: + msg64347
2020-12-30 23:55:29reviewbotsetmessages: + msg63721
2020-12-30 15:52:28reviewbotsetmessages: + msg63706
2020-12-30 15:42:12cedsetassignedto: pokoli -> ced
messages: + msg63705
reviews: 286271002, 321901002 -> 286271002, 321901002,347191002
2020-08-10 18:15:26reviewbotsetmessages: + msg59671
2020-08-01 11:16:42reviewbotsetmessages: + msg59579
2020-08-01 11:15:38pokolisetmessages: + msg59578
2020-07-31 22:59:32cedsetnosy: + ced
messages: + msg59576

Showing 10 items. Show all history (warning: this could be VERY long)