account_partner_required: fix string
This commit is contained in:
parent
f6adbe2f9e
commit
4c1da24f42
@ -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 "
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user