delete() korrigiert
This commit is contained in:
parent
a521064ddf
commit
fc3ddba3ab
4 changed files with 4 additions and 4 deletions
2
book.py
2
book.py
|
@ -467,6 +467,6 @@ class Book(tree(separator='/'), Workflow, ModelSQL, ModelView):
|
||||||
bookname = book.rec_name,
|
bookname = book.rec_name,
|
||||||
booklines = len(book.lines),
|
booklines = len(book.lines),
|
||||||
))
|
))
|
||||||
return super(Book, cls).delete(books)
|
super(Book, cls).delete(books)
|
||||||
|
|
||||||
# end Book
|
# end Book
|
||||||
|
|
2
line.py
2
line.py
|
@ -975,7 +975,7 @@ class Line(SecondCurrencyMixin, Workflow, ModelSQL, ModelView):
|
||||||
""" deny delete if book is not 'open' or wf is not 'edit'
|
""" deny delete if book is not 'open' or wf is not 'edit'
|
||||||
"""
|
"""
|
||||||
cls.check_permission_delete(lines)
|
cls.check_permission_delete(lines)
|
||||||
return super(Line, cls).delete(lines)
|
super(Line, cls).delete(lines)
|
||||||
|
|
||||||
# end Line
|
# end Line
|
||||||
|
|
||||||
|
|
|
@ -446,6 +446,6 @@ class Reconciliation(Workflow, ModelSQL, ModelView):
|
||||||
reconstate = reconciliation.state_string,
|
reconstate = reconciliation.state_string,
|
||||||
))
|
))
|
||||||
|
|
||||||
return super(Reconciliation, cls).delete(reconciliations)
|
super(Reconciliation, cls).delete(reconciliations)
|
||||||
|
|
||||||
# end Type
|
# end Type
|
||||||
|
|
|
@ -254,6 +254,6 @@ class SplitLine(SecondCurrencyMixin, ModelSQL, ModelView):
|
||||||
Line2 = Pool().get('cashbook.line')
|
Line2 = Pool().get('cashbook.line')
|
||||||
|
|
||||||
Line2.check_permission_delete([x.line for x in splitlines])
|
Line2.check_permission_delete([x.line for x in splitlines])
|
||||||
return super(SplitLine, cls).delete(splitlines)
|
super(SplitLine, cls).delete(splitlines)
|
||||||
|
|
||||||
# end SplitLine
|
# end SplitLine
|
||||||
|
|
Loading…
Reference in a new issue