mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
account_partner_required: fix string
This commit is contained in:
committed by
Luis Rodriguez
parent
fba3e63391
commit
18f19e0cc2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user