Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EE-currency_rate_live: Bulgarian National Bank curences update, wrong receiving rate #165031

Open
rosenvladimirov opened this issue May 9, 2024 · 0 comments

Comments

@rosenvladimirov
Copy link

Impacted versions: 16.0 enterprise
currency_rate_live/models/res_config_settings.py
def _parse_bnb_data(self, available_currencies)

Steps to reproduce: Update currency rate for Bulgarian National Bank

Current behavior: Wrong receiving rate. The some currency rates has ratio conversion. Example TRY is 100 per currency rate

Expected behavior:
for row in islice(rowset.iterfind('.//ROW'), 1, None): code = row.findtext('CODE') rate = row.findtext('REVERSERATE') ratio = row.findtext('RATIO') curr_date = datetime.datetime.strptime(row.findtext('CURR_DATE'), '%d.%m.%Y').date() if code in available_currency_names and rate: result[code] = (float(rate)*float(ration), curr_date)

Video/Screenshot link (optional):

Support ticket number submitted via odoo.com/help (optional):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant