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] avoid crash when changing a relational field to simple field #108

Merged

Conversation

florian-dacosta
Copy link
Contributor

Example of crash before this fix : on res.partner, choose country_id as field1_id and code as field2_id then change field1_id for active
name field is not updated yet at the time it goes through _get_last_relation_field so odoo expected a relational field even though it is not anymore and crashes.

@Kev-Roche
Copy link
Contributor

code and functionnal review LGTM

@hparfr
Copy link
Contributor

hparfr commented Oct 13, 2023

/ocabot merge minor

@shopinvader-git-bot
Copy link

On my way to merge this fine PR!
Prepared branch 14.0-ocabot-merge-pr-108-by-hparfr-bump-minor, awaiting test results.

shopinvader-git-bot pushed a commit that referenced this pull request Oct 13, 2023
Signed-off-by hparfr
@shopinvader-git-bot
Copy link

@hparfr your merge command was aborted due to failed check(s), which you can inspect on this commit of 14.0-ocabot-merge-pr-108-by-hparfr-bump-minor.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@florian-dacosta
Copy link
Contributor Author

@hparfr I did rebase, maybe you could try again to merge it

Example of crash before this fix : on res.partner, choose country_id as field1_id and code as field2_id then change field1_id for active
name field is not updated yet at the time it goes through _get_last_relation_field so odoo expected a relational field even though it is not anymore it is not anymore
@florian-dacosta florian-dacosta force-pushed the 14-fix-crash-change-field1 branch from 20ad292 to 7a697c0 Compare April 17, 2024 10:30
@hparfr
Copy link
Contributor

hparfr commented Apr 17, 2024

/ocabot merge minor

@shopinvader-git-bot
Copy link

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 14.0-ocabot-merge-pr-108-by-hparfr-bump-minor, awaiting test results.

@shopinvader-git-bot shopinvader-git-bot merged commit 507004f into shopinvader:14.0 Apr 17, 2024
4 checks passed
@shopinvader-git-bot
Copy link

Congratulations, your PR was merged at 2d19948. Thanks a lot for contributing to shopinvader. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants