Fix performance on delete operation
On tryton desktop client when I delete many records, this operation takes less than
ten seconds, but the same operation on sao client takes a lot of time, and consume
ram memory on my server.
When I saw source code of tryton, I found that on delete function on record.py
verify if there is some data on reload_ids:
if reload_ids:
root_group.reload(reload_ids)
But the same section on sao client, on model.js not verify if reload_ids have
data:
return this.execute('delete', [record_ids], context)
.then(function() {
root_group.reload(reload_ids);
});
I think that sao client should use the same logic than tryton client.