-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
[17.0][FIX] partner_event: handle contacts with mobile field #444
base: 17.0
Are you sure you want to change the base?
Conversation
292f71a
to
741cb8a
Compare
I don't know, what it asks from me |
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.
The codecov check is saying that the test coverage is decreasing, but it's not enforced. I see you have added regression tests, so maybe not all the new lines are covered by these tests.
) | ||
|
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.
Don't add empty lines inside method, and more if the previous style was this way.
phone = vals.get("phone") or mobile | ||
if phone: | ||
vals["phone"] = phone | ||
|
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.
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.
Please squash both commits into one.
In Odoo event.registration.mobile field does not exist. As result before this commit, if you manually create registration with partner that has "mobile" field set, KeyError will be raised. Notes for future migrations to 19.0+ included.
f2c20f2
to
b6c6b42
Compare
In Odoo event.registration.mobile field does not exist.
As result before this commit, if you manually create registration with partner that has "mobile" field set, KeyError will be raised.
Notes for future migrations to 19.0+ included.