[12.0][FIX] web_translate_dialog dataset context not always filled from searchview

This commit is contained in:
cyrilmanuel
2023-08-17 12:21:30 +02:00
parent 7af4898589
commit 347d58cbae

View File

@@ -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']);