+3
-2
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user