parent
50739ec754
commit
717d77ee40
|
@ -765,9 +765,8 @@ class TestLine(UnionMixin, sequence_ordered(), ModelSQL, ModelView):
|
|||
def write(cls, *args):
|
||||
pool = Pool()
|
||||
models_to_write = defaultdict(list)
|
||||
# Check Permisions
|
||||
super(TestLine, cls).write(*args)
|
||||
actions = iter(args)
|
||||
|
||||
for models, values in zip(actions, actions):
|
||||
for model in models:
|
||||
record = cls.union_unshard(model.id)
|
||||
|
@ -780,8 +779,7 @@ class TestLine(UnionMixin, sequence_ordered(), ModelSQL, ModelView):
|
|||
def delete(cls, lines):
|
||||
pool = Pool()
|
||||
models_to_delete = defaultdict(list)
|
||||
# Check Permisions
|
||||
super(TestLine, cls).delete(lines)
|
||||
|
||||
for model in lines:
|
||||
record = cls.union_unshard(model.id)
|
||||
models_to_delete[record.__name__].append(record)
|
||||
|
|
Loading…
Reference in New Issue