From 4606250d914bb18517d6f5713fcd33348553dadc Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 26 Apr 2016 15:51:00 +0200 Subject: [PATCH] [FIX] account: amount currency in journal items list view In 8.0, the amount currency field was displayed in the journal items list view when choosing, thanks to the `quick add` widget, a journal with a currency set. Otherwise, if the journal had no currency set, the column was not displayed. It was done thanks to the key "currency" passed in the context. From 9.0, the `quick add` is no longer used, and, due to that, the amount currency field was no longer displayed in the journal items list view at all, despite if the journal had a currency set or not. In technical words, `currency` was no longer passed in the context, making the invisibility property set with `invisible="not context.get('currency',False)"` useless. As this widget is no longer used, there is no other choice than either always display the column, either never. We choose to display it only if you have the multi-currency group (as this is the case in the journal item form view) We also take the opportunity to move the column next to the debit & credit column, this is more meaningful. opw-676059 --- addons/account/views/account_view.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/views/account_view.xml b/addons/account/views/account_view.xml index 76ac76adf1b..c9c9fe7082d 100644 --- a/addons/account/views/account_view.xml +++ b/addons/account/views/account_view.xml @@ -1098,9 +1098,9 @@ + + - -