delete() korrigiert

This commit is contained in:
Frederik Jaeckel 2022-10-15 13:28:46 +02:00
parent a521064ddf
commit fc3ddba3ab
4 changed files with 4 additions and 4 deletions

View file

@ -467,6 +467,6 @@ class Book(tree(separator='/'), Workflow, ModelSQL, ModelView):
bookname = book.rec_name,
booklines = len(book.lines),
))
return super(Book, cls).delete(books)
super(Book, cls).delete(books)
# end Book

View file

@ -975,7 +975,7 @@ class Line(SecondCurrencyMixin, Workflow, ModelSQL, ModelView):
""" deny delete if book is not 'open' or wf is not 'edit'
"""
cls.check_permission_delete(lines)
return super(Line, cls).delete(lines)
super(Line, cls).delete(lines)
# end Line

View file

@ -446,6 +446,6 @@ class Reconciliation(Workflow, ModelSQL, ModelView):
reconstate = reconciliation.state_string,
))
return super(Reconciliation, cls).delete(reconciliations)
super(Reconciliation, cls).delete(reconciliations)
# end Type

View file

@ -254,6 +254,6 @@ class SplitLine(SecondCurrencyMixin, ModelSQL, ModelView):
Line2 = Pool().get('cashbook.line')
Line2.check_permission_delete([x.line for x in splitlines])
return super(SplitLine, cls).delete(splitlines)
super(SplitLine, cls).delete(splitlines)
# end SplitLine