summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2020-04-29 12:47:35 +0000
committerXavier Morel <xmo@odoo.com>2020-04-29 12:53:04 +0000
commite72c6093064b0321743bb1d24a705718d32d0820 (patch)
tree37cd1de025299b2765521169a6dcebc8a09cdfda /addons/web/static/tests/fields/basic_fields_tests.js
parent9b9829416ba0b09901a3de1578ff172024ab4f35 (diff)
[FIX] base: translations when dev-mode is enabled
When computing the `arch` from the arch_db, the field gets translated as a matter of course as `arch_db` is a stored field with a translation method. This means `arch` is assumed to be in the proper language in the cache. However when reading from the filesystem (dev=xml) this is not the case, and the view XML ends up untranslated. Fix the issue by applying the translation function from arch_db onto the stuff we got from the filesystem. Note: under the assumption that we *do not* want to store translated archs in arch_db, explicitly set the lang to None when resetting views. Task 2059557 closes odoo/odoo#50389 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions