-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
[FIX] disable_invalid_filters: <module 'time' (built-in)> can not be used in evaluation contexts #280
[FIX] disable_invalid_filters: <module 'time' (built-in)> can not be used in evaluation contexts #280
Conversation
This has been working perfectly during several versions. Is it a problem in v14? Why? If so, you must restrict it to such version, not on the rest. |
Yes, it is a problem in v14 (all filters is archived) |
But I don't get why. Having an extra argument shouldn't be the reason for that. I have migrated to v14 already some DBs and don't have this problem. |
Because if error occurs, except clause will be handled, so all filters is archived |
The following code generates that message, however, I see no need to use |
b8c558b
to
232be4e
Compare
@pedrobaeza I fixed to restrict it to version 14.0, please review, thank you |
used in evaluation contexts
232be4e
to
faf7ec3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@pedrobaeza please review this PR, thank you |
We're migrating a db from v12 to v14 and found this problem too. It's something new in v14 that I didn't see before. Because of this we're getting around 408 user-defined filters archived, so would be great when this pull request can be reviewed and merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked that no other replacement is found, so good to go
This PR has the |
This error will save archive all filters
=> Prefer providing only the items necessary for your intended use as attributes of
odoo.tools.safe_eval