write/delete table_query has not implemented

#045042
This commit is contained in:
Raimon Esteve 2021-11-08 12:58:15 +01:00
parent 613cb0d5d4
commit 14054f9679
1 changed files with 2 additions and 4 deletions

View File

@ -700,9 +700,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)
@ -715,8 +714,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)