adamcharnock / django-hordak

Double entry accounting in Django
http://django-hordak.readthedocs.io
MIT License
228 stars 55 forks source link

Accounts create Form throws an error #108

Closed vidhyau-twbs-eu closed 1 month ago

vidhyau-twbs-eu commented 8 months ago
File "C:\Users\User\AppData\Local\pypoetry\Cache\virtualenvs\accounting-ovQkqOs5-py3.10\lib\site-packages\hordak\forms\accounts.py", line 97, in clean
    self._check_currencies_json()
  File "C:\Users\User\AppData\Local\pypoetry\Cache\virtualenvs\accounting-ovQkqOs5-py3.10\lib\site-packages\hordak\forms\accounts.py", line 67, in _check_currencies_json
    for currency in currencies:
TypeError: 'NoneType' object is not iterable

The following settings is configured

HORDAK_DEFAULT_CURRENCY = "GBP"
HORDAK_INTERNAL_CURRENCY = "EUR"
HORDAK_CURRENCIES = ["GBP", "USD", "EUR", "INR"]

http://127.0.0.1:8888/hordak/accounts/create/

Throws the above error when trying to Create an Account. Form does not load

adamcharnock commented 1 month ago

I think I may have fixed this now, but let me know if anyone is still seeing issues here