summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorNans Lefebvre <len@odoo.com>2019-10-17 12:22:47 +0000
committerfw-bot <otis@odoo.com>2019-10-21 14:31:10 +0000
commit4dcae232f36569b88565db46b2655f5887e3e249 (patch)
tree901f963c3124ad40352066ae451be441474f8088 /addons/web/static/src/js/fields/basic_fields.js
parent84a89e1e1ed9f083e43468364b525f145a260178 (diff)
[FIX] fields, test_translate: multilanguage without en_US
Before, en_US was almost always the default in case of 'no language'. Now, that should be superseded by lang=None; yet still, en_US plays the role of source language. In a multilanguage database where en_US was not installed, writing a translation with lang=None would crash. This could prevent module installation. A test is added to cover that case. In the case where we write a record with lang=None, the source is the same as the record; in that case the cache contains the value for the field.name under the context keys en_US and None, so we need to invalidate the cache to avoid getting back the old value. co-authored with mart-e opw 2088487 opw 2083710 closes odoo/odoo#39130 X-original-commit: 1a5a999c2dd69c9a6a2dacb59e8bf45b09c6bc13 Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions