Set current screen context in import / export windows

Closes #14128
This commit is contained in:
Nicolas Évrard
2025-07-23 14:10:32 +02:00
parent 8d7279778b
commit bf64f359a2
+3 -2
View File
@@ -1425,7 +1425,8 @@
},
_get_fields: function(model) {
return Sao.rpc({
'method': 'model.' + model + '.fields_get'
'method': 'model.' + model + '.fields_get',
'params': [this.screen.context],
}, this.session, false);
},
on_row_expanded: function(node) {
@@ -1784,7 +1785,7 @@
Sao.rpc({
'method': 'model.' + this.screen.model_name +
'.import_data',
'params': [fields, data, {}]
'params': [fields, data, this.screen.context]
}, this.session).then(count => {
return Sao.common.message.run(
Sao.i18n.ngettext('%1 record imported',