From 743288be16b707e5f7e492d9058e6ec1fc22af09 Mon Sep 17 00:00:00 2001 From: Marcel Savegnago Date: Fri, 19 Jul 2024 16:36:37 -0300 Subject: [PATCH] [FIX] l10n_br_fiscal: fix validation error message --- l10n_br_fiscal/models/document.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/l10n_br_fiscal/models/document.py b/l10n_br_fiscal/models/document.py index 9b3f40341f5e..343d59d57f8e 100644 --- a/l10n_br_fiscal/models/document.py +++ b/l10n_br_fiscal/models/document.py @@ -349,7 +349,8 @@ def unlink(self): raise ValidationError( _( "You cannot delete fiscal document number %(number)s with " - "the status: %(state)!", + "the status: %(state)s!", + ).format( number=record.document_number, state=record.state_edoc, )