[FIX] base_import: translate column name
The labels of the imported columns were untranslated, displaying the name of the field in English opw-813996 Fixes #22703 Closes #22717
This commit is contained in:
@@ -137,6 +137,7 @@ var DataImport = Widget.extend(ControlPanelMixin, {
|
||||
model: 'base_import.import',
|
||||
method: 'create',
|
||||
args: [{res_model: this.res_model}],
|
||||
kwargs: {context: session.user_context},
|
||||
});
|
||||
},
|
||||
renderButtons: function() {
|
||||
@@ -280,6 +281,7 @@ var DataImport = Widget.extend(ControlPanelMixin, {
|
||||
model: 'base_import.import',
|
||||
method: 'parse_preview',
|
||||
args: [this.id, this.import_options()],
|
||||
kwargs: {context: session.user_context},
|
||||
}).done(function (result) {
|
||||
var signal = result.error ? 'preview_failed' : 'preview_succeeded';
|
||||
self[signal](result);
|
||||
|
||||
Reference in New Issue
Block a user