FIX issue12678.diff

This commit is contained in:
Raimon Esteve 2023-11-02 10:06:49 +01:00
parent d4f13b204b
commit f71c460c05
1 changed files with 2 additions and 2 deletions

View File

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