You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a project as a default currency different from "XXX", changing the project settings will not be possible. An error is raised with the message : "Cannot change project currency because currency conversion is broken". The fact is that even if we don't want to change the currency, the message still shows up (same for the API).
"Cannot change project currency because currency conversion is broken"
)
raiseValidationError(msg)
For me, a better if statement could be (although I didn't test it):
if (
project is not None
and field.data != project.default_currency
and project.has_bills()
):
I know this was a hot fix waiting for improvement with the #1232 but checking for the current project default currency makes more sens considering the error message. This bug is annoying as to change the other settings, we have to set the currency to "no currency" as it's the only condition that doesn't raise this error.
The text was updated successfully, but these errors were encountered:
When a project as a default currency different from "XXX", changing the project settings will not be possible. An error is raised with the message : "Cannot change project currency because currency conversion is broken". The fact is that even if we don't want to change the currency, the message still shows up (same for the API).
This comes from this if statement :
ihatemoney/ihatemoney/forms.py
Lines 196 to 204 in 2bb5350
For me, a better if statement could be (although I didn't test it):
I know this was a hot fix waiting for improvement with the #1232 but checking for the current project default currency makes more sens considering the error message. This bug is annoying as to change the other settings, we have to set the currency to "no currency" as it's the only condition that doesn't raise this error.
The text was updated successfully, but these errors were encountered: