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

[om_account_followup/report/followup_print.py] fix for TypeError: '<=' not supported between instances of 'datetime.date' and 'str' #112

Open
tilleul opened this issue Oct 26, 2023 · 0 comments

Comments

@tilleul
Copy link

tilleul commented Oct 26, 2023

FYI; there's a bug in this file for versions 14, 15 & 16 ...

Code from version 14 (line 239-240) reads:

elif date and date <= fups[followup_line_id][0].strftime(
                    '%Y-%m-%d'):

But it should be

elif date and fields.Date.to_string(date) <= fups[followup_line_id][0].strftime(
                    '%Y-%m-%d'):

otherwise you get the error message mentioned in the title of this post.

Other versions have the same line in the same file but in different locations.

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