-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
[16.0][FIX] account_chart_update: Translatable fields without transla… #2002
[16.0][FIX] account_chart_update: Translatable fields without transla… #2002
Conversation
Hi @rafaelbn, |
stored_translation_rec = field._get_stored_translations(rec) | ||
if not stored_translation_rec: | ||
continue | ||
old_value = stored_translation_rec.get(rec.env.lang, "en_US") |
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.
Didn't you mean this?
old_value = stored_translation_rec.get(rec.env.lang, "en_US") | |
old_value = stored_translation_rec.get(rec.env.lang or "en_US") or "" |
7b28793
to
3d27542
Compare
…tions may raise errors as its fetched by the wizard but has no translated value @moduon MT-8280
3d27542
to
c3b4036
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.
/ocabot merge patch
Sorry @yajo you are not allowed to merge. To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons. If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the |
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.
/ocabot merge patch
On my way to merge this fine PR! |
Congratulations, your PR was merged at a8c69ea. Thanks a lot for contributing to OCA. ❤️ |
…tions may raise errors as its fetched by the wizard but has no translated value
This fix has been made in cases where there are differences in the translation but there is no prior definition in the field (e.g. the field was originally empty).
@moduon MT-8280
@EmilioPascual @yajo @rafaelbn please review, if you can.