mirror of https://github.com/OCA/web.git
[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.pull/1801/head
parent
ba89cbc0f8
commit
0a334368bf
|
@ -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, "
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue