From c8961f826fa23a31ea920b0872c82d5053ffac9a Mon Sep 17 00:00:00 2001 From: matteoopenf Date: Thu, 13 Jun 2024 11:38:51 +0200 Subject: [PATCH] [fix]account_move_force_removal fix test --- account_move_force_removal/models/account_move.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account_move_force_removal/models/account_move.py b/account_move_force_removal/models/account_move.py index 874d99b04f9d..d807b4e3c42d 100644 --- a/account_move_force_removal/models/account_move.py +++ b/account_move_force_removal/models/account_move.py @@ -21,7 +21,8 @@ def unlink(self): # self._check_can_be_deleted(states=["cancel", "posted"]) raise UserError( _( - "You cannot delete an entry which has been posted once, You haven't the correct right" + "You cannot delete an entry which has been posted once, " + "You haven't the correct right" ) ) return super(AccountMove, self - cancelled_moves).unlink()