-
- Downloads
[FIX] core: fix translation dialog
The fix in #106174 was not good.
The translation dialog cannot update not translated terms
the initial term value may be empty "" when the source and the translation are
the same at first. So, the source to for update_field_translations should be
const source = term.value ? term.value : term.source;
closes odoo/odoo#106360
Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
Showing
- addons/web/static/src/legacy/js/widgets/translation_dialog.js 2 additions, 1 deletion...ns/web/static/src/legacy/js/widgets/translation_dialog.js
- addons/web/static/src/views/fields/translation_dialog.js 2 additions, 1 deletionaddons/web/static/src/views/fields/translation_dialog.js
- addons/web/static/tests/legacy/fields/basic_fields_tests.js 19 additions, 9 deletionsaddons/web/static/tests/legacy/fields/basic_fields_tests.js
- addons/web/static/tests/views/fields/html_field_tests.js 20 additions, 9 deletionsaddons/web/static/tests/views/fields/html_field_tests.js
Loading
Please register or sign in to comment