From 363402c9acc41b9650ac40102ab67a783dad6815 Mon Sep 17 00:00:00 2001 From: Timon Tschanz Date: Mon, 22 Jan 2018 17:54:53 +0100 Subject: [PATCH] [fix] web_translate_dialog: correct context split Fixes the display of languages other than the user language in the translation dialog. split_context checks if we provide more arguments than read has and then uses of the additional one as context. Since read takes the argument load additionally to the ones already given, we need to provide it as well to ensure the context is split. --- web_translate_dialog/__manifest__.py | 2 +- web_translate_dialog/static/src/js/web_translate_dialog.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web_translate_dialog/__manifest__.py b/web_translate_dialog/__manifest__.py index c3caa46e..c7ac8d27 100644 --- a/web_translate_dialog/__manifest__.py +++ b/web_translate_dialog/__manifest__.py @@ -6,7 +6,7 @@ { "name": "Web Translate Dialog", "summary": "Easy-to-use pop-up to translate fields in several languages", - "version": "10.0.1.0.0", + "version": "10.0.1.0.1", "category": "Web", "website": "https://odoo-community.org/", "author": "Camptocamp, " 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 1514c8c6..1a68bf9e 100644 --- a/web_translate_dialog/static/src/js/web_translate_dialog.js +++ b/web_translate_dialog/static/src/js/web_translate_dialog.js @@ -141,7 +141,7 @@ var translateDialog = Dialog.extend({ deff.resolve(); } else { self.view.dataset.call('read',[[self.view.datarecord.id], - self.translatable_fields_keys, + self.translatable_fields_keys, '_classic_read', self.view.dataset.get_context({ 'lang': lg.code })]).done( function (rows) {