summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorNans Lefebvre <len@odoo.com>2019-06-07 13:46:41 +0000
committerNans Lefebvre <len@odoo.com>2019-06-11 06:50:01 +0000
commit7ef4ba03c4f8dce42f5a56b64d2374373d13aa8d (patch)
treef1a82673136efac73346c236d69f5f6933b39051 /addons/web/static/tests/fields/basic_fields_tests.js
parentef7988c22c623ab3f286f996a3dd2605e78f7c6b (diff)
[FIX] ir_translation: do not raise access errors on list view
Have a translation linked to a record unreadable because of a record rule (e.g. a product that is not shared between companies). Display the translations list view; if one such translation is in the view, it will raise an access error. When computing the source value, _compute_source will fail to read the record, and raise an access error. This will make it impossible to access untranslated terms. Instead we guard this error. Since it is displayed in the view, we display an informative message. Note that since we make this error go away, we also fix the check method. Only the superuser bypasses the record rules; so if we made the check on write with _is_admin, it means than a user in group_erp_manager cannot read a record but can edit its translations. opw 2000817 closes odoo/odoo#33989 Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions