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

[FIX] core.exceptions.UserError --> Warning #354

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

jjscarafia
Copy link
Contributor

The deprecated warning was removed on 17 (odoo/odoo@d200dcf)

Copy link
Contributor

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi. openupgradelib has to be used with all version of odoo. Not only the last one.
for that reason, this patch is not valid.
See red CI, in openerp 6.1 context
AttributeError: 'module' object has no attribute 'UserError'

https://app.travis-ci.com/github/OCA/openupgradelib/builds/267217636#L821

@pedrobaeza
Copy link
Member

You have to do a conditional import depending on Odoo version.

The deprecated warning was removed on 17 (odoo/odoo@d200dcf)
@jjscarafia
Copy link
Contributor Author

done @pedrobaeza @legalsylvain
thanks for the review!

Copy link
Contributor

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks !

@pedrobaeza pedrobaeza merged commit accb9f8 into OCA:master Nov 23, 2023
3 checks passed
@jjscarafia jjscarafia deleted the master-fix-for-17 branch November 30, 2023 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants