From 4c1da24f425c0068ac0bc5ae9e8ec226949c4af5 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Fri, 3 Nov 2023 15:36:22 +0100 Subject: [PATCH] account_partner_required: fix string --- account_partner_required/models/account_account.py | 2 +- account_partner_required/models/account_move_line.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/account_partner_required/models/account_account.py b/account_partner_required/models/account_account.py index 27bef1d5..4c5a24c8 100644 --- a/account_partner_required/models/account_account.py +++ b/account_partner_required/models/account_account.py @@ -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 " diff --git a/account_partner_required/models/account_move_line.py b/account_partner_required/models/account_move_line.py index d1c763c4..6d0105e1 100644 --- a/account_partner_required/models/account_move_line.py +++ b/account_partner_required/models/account_move_line.py @@ -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,