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), )