2
0

Merge pull request #1768 from akretion/16.0-account_partner_required-fix_string

[16.0] account_partner_required: fix string
This commit is contained in:
Alexis de Lattre 2023-11-04 23:53:13 +01:00 committed by GitHub
commit 91e06ec367
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 " help="Set the policy for the partner field:\nif you select "
"'Optional', the accountant is free to put a partner " "'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 " "if you select 'Always', the accountant will get an error "
"message if there is no partner ;\nif you select 'Never', " "message if there is no partner ;\nif you select 'Never', "
"the accountant will get an error message if a partner " "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: elif policy == "never" and line.partner_id:
return _( return _(
"Partner policy is set to 'Never' on account '%(account)s' but " "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, "account": line.account_id.display_name,
"move_line": line.display_name, "move_line": line.display_name,