Fix bug in patch issue12678.diff.

This commit is contained in:
Bernat Brunet 2023-11-01 12:40:33 +01:00
parent e25d4a36f8
commit f4730c8d5d
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.'