FIX issue12678.diff
This commit is contained in:
parent
d4f13b204b
commit
f71c460c05
|
@ -35,7 +35,7 @@ index d0b426bc4e..e874e24c4c 100644
|
|||
+ @classmethod
|
||||
+ def delete(cls, lines):
|
||||
+ for line in lines:
|
||||
+ if line.statement_state != {'cancelled', 'draft'}:
|
||||
+ if line.statement_state not in {'cancelled', 'draft'}:
|
||||
+ raise AccessError(
|
||||
+ gettext(
|
||||
+ 'account_statement.'
|
||||
|
@ -54,7 +54,7 @@ index d0b426bc4e..e874e24c4c 100644
|
|||
+ @classmethod
|
||||
+ def delete(cls, origins):
|
||||
+ for origin in origins:
|
||||
+ if origin.statement_state != {'cancelled', 'draft'}:
|
||||
+ if origin.statement_state not in {'cancelled', 'draft'}:
|
||||
+ raise AccessError(
|
||||
+ gettext(
|
||||
+ 'account_statement.'
|
||||
|
|
Loading…
Reference in New Issue