[FIX] format string translate

This commit is contained in:
Saran440
2023-09-13 16:42:44 +07:00
committed by Andrea Stirpe
parent f3cd6619e1
commit e2ab9e5fdb
3 changed files with 25 additions and 16 deletions

View File

@@ -169,9 +169,7 @@ class AccountSpreadTemplate(models.Model):
)
if results:
raise UserError(
_("Followings are duplicated combinations,\n\n{}").format(
"\n".join(results)
)
_("Followings are duplicated combinations,\n\n%s") % "\n".join(results)
)