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:
commit
91e06ec367
@ -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 "
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user