Xml import: Use a set instead of a list to store all the ids.
This commit is contained in:
1 parent
406692ab69
commit
e803fa7461
1 file changed
+2
-2
@@ -525,8 +525,8 @@ class TrytondXmlHandler(sax.handler.ContentHandler):
|
||||
('module', '=', self.module),
|
||||
('inherit', '=', False),
|
||||
], order=[('id', 'DESC')])
|
||||
return [rec.fs_id for rec in self.modeldata_obj.browse(
|
||||
self.cursor, self.user, module_data_ids)]
|
||||
return set(rec.fs_id for rec in self.modeldata_obj.browse(
|
||||
self.cursor, self.user, module_data_ids))
|
||||
|
||||
def import_record(self, model, values, fs_id):
|
||||
|
||||
|
||||
Reference in new issue
Block a user