From bb67cd9e6fd5adfe3e035e6a3461652e04e688f5 Mon Sep 17 00:00:00 2001 From: Christopher Ormaza Date: Tue, 28 Mar 2023 11:59:48 -0500 Subject: [PATCH] fix: validation rise --- account_payment_line/models/counterpart_line.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_payment_line/models/counterpart_line.py b/account_payment_line/models/counterpart_line.py index 41ee545854f..42d5fb96ee1 100644 --- a/account_payment_line/models/counterpart_line.py +++ b/account_payment_line/models/counterpart_line.py @@ -154,6 +154,6 @@ def constrains_amount_residual(self): raise ValidationError( _( "the amount exceeds the residual amount, please check the invoice %s" - ), - (rec.aml_id.move_id.name or rec.aml_id.name), + ) + % (rec.aml_id.move_id.name or rec.aml_id.name), )