From 347d58cbaedb6fc060f1ea45ba5a210333285077 Mon Sep 17 00:00:00 2001 From: cyrilmanuel Date: Thu, 17 Aug 2023 12:21:30 +0200 Subject: [PATCH] [12.0][FIX] web_translate_dialog dataset context not always filled from searchview --- web_translate_dialog/static/src/js/web_translate_dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_translate_dialog/static/src/js/web_translate_dialog.js b/web_translate_dialog/static/src/js/web_translate_dialog.js index 14284a8b3788..40cfc4779362 100644 --- a/web_translate_dialog/static/src/js/web_translate_dialog.js +++ b/web_translate_dialog/static/src/js/web_translate_dialog.js @@ -51,7 +51,7 @@ var TranslateDialog = Dialog.extend({ this.languages = null; this.languages_loaded = $.Deferred(); this.lang_data = new data.DataSetSearch( - this, 'res.lang', parent.searchView.dataset.get_context(), + this, 'res.lang', parent.context, [['translatable', '=', '1']] ); this.lang_data.set_sort(['tr_sequence asc','id asc']);