Replace sel_ids_get by selected_records

Since changeset 24009ca96e78, sel_ids_get was removed to replaced by
selected_records.

issue3790
This commit is contained in:
Cédric Krier committed 2014-03-23 15:29:21 +01:00
1 parent e3fb818110
commit 3d860cf7d0
1 file changed
+2 -2
+2 -2
View File
@@ -598,9 +598,9 @@ class Screen(SignalEvent):
return True
def copy(self):
res_ids = self.sel_ids_get()
ids = [r.id for r in self.selected_records]
try:
new_ids = RPCExecute('model', self.model_name, 'copy', res_ids, {},
new_ids = RPCExecute('model', self.model_name, 'copy', ids, {},
context=self.context)
except RPCException:
return