2
0

account_partner_required: fix string

This commit is contained in:
Alexis de Lattre 2023-11-03 15:36:22 +01:00
parent f6adbe2f9e
commit 4c1da24f42
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ class AccountAccount(models.Model):
],
help="Set the policy for the partner field:\nif you select "
"'Optional', the accountant is free to put a partner "
"on an account move line with this account ;\n"
"on journal items with this account ;\n"
"if you select 'Always', the accountant will get an error "
"message if there is no partner ;\nif you select 'Never', "
"the accountant will get an error message if a partner "

View File

@ -28,7 +28,7 @@ class AccountMoveLine(models.Model):
elif policy == "never" and line.partner_id:
return _(
"Partner policy is set to 'Never' on account '%(account)s' but "
"the journal item '%(move_line)s' has a partner '%(partner)s'."
"the journal item '%(move_line)s' has the partner '%(partner)s'."
) % {
"account": line.account_id.display_name,
"move_line": line.display_name,