diff --git a/addons/account/i18n/account.pot b/addons/account/i18n/account.pot index 34f55436b29..b1c6cef056b 100644 --- a/addons/account/i18n/account.pot +++ b/addons/account/i18n/account.pot @@ -15865,8 +15865,8 @@ msgstr "" #: code:addons/account/wizard/account_payment_register.py:0 #, python-format msgid "" -"You can't register payments for journal items being either all inbound, " -"either all outbound." +"You can't register payments for both inbound and outbound moves " +"at the same time." msgstr "" #. module: account diff --git a/addons/account/wizard/account_payment_register.py b/addons/account/wizard/account_payment_register.py index d3b8a4212d3..682ed6f0e1a 100644 --- a/addons/account/wizard/account_payment_register.py +++ b/addons/account/wizard/account_payment_register.py @@ -668,7 +668,7 @@ class AccountPaymentRegister(models.TransientModel): if len(lines.company_id.root_id) > 1: raise UserError(_("You can't create payments for entries belonging to different companies.")) if len(set(available_lines.mapped('account_type'))) > 1: - raise UserError(_("You can't register payments for journal items being either all inbound, either all outbound.")) + raise UserError(_("You can't register payments for both inbound and outbound moves at the same time.")) res['line_ids'] = [(6, 0, available_lines.ids)]