From e4729c4acdd303799be2511c53ee0464b024ca68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 16 Apr 2023 19:07:25 +0200 Subject: [PATCH] Normalize second currency label --- modules/account/account.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/account/account.py b/modules/account/account.py index 09ea6fe566..091b9e8198 100644 --- a/modules/account/account.py +++ b/modules/account/account.py @@ -861,16 +861,16 @@ class Account( currency = fields.Function(fields.Many2One( 'currency.currency', "Currency"), 'get_currency', searcher='search_currency') - second_currency = fields.Many2One('currency.currency', - 'Secondary Currency', help='Force all moves for this account \n' - 'to have this secondary currency.', ondelete="RESTRICT", + second_currency = fields.Many2One( + 'currency.currency', "Second Currency", ondelete="RESTRICT", domain=[ ('id', '!=', Eval('currency', -1)), ], states={ 'readonly': _states['readonly'], 'invisible': ~Eval('deferral', False), - }) + }, + help="Force all moves for this account to have this second currency.") type = fields.Many2One( 'account.account.type', "Type", ondelete='RESTRICT', states={