line: 'number' bei check->done schreiben korrigert + test
This commit is contained in:
parent
b78ff02500
commit
ba3892aa03
2 changed files with 88 additions and 1 deletions
2
line.py
2
line.py
|
@ -722,7 +722,7 @@ class Line(Workflow, ModelSQL, ModelView):
|
|||
# deny write if line is not 'Edit'
|
||||
if line.state != 'edit':
|
||||
# allow state-update, if its the only action
|
||||
if not ((len(set({'state', 'reconciliation'}).intersection(values.keys())) > 0) \
|
||||
if not ((len(set({'state', 'reconciliation', 'number'}).intersection(values.keys())) > 0) \
|
||||
and (len(values.keys()) == 1)):
|
||||
raise UserError(gettext(
|
||||
'cashbook.msg_line_deny_write',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue