line: 'number' bei check->done schreiben korrigert + test

This commit is contained in:
Frederik Jaeckel 2022-09-02 15:18:28 +02:00
parent b78ff02500
commit ba3892aa03
2 changed files with 88 additions and 1 deletions

View file

@ -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',