From d2d08f71f5aece4626eb1cc81715c8b0720d1818 Mon Sep 17 00:00:00 2001 From: Pierre Paridans Date: Thu, 10 Sep 2020 14:06:00 +0000 Subject: [PATCH] [FIX] account: discount field shown in form view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, when discounts were enabled (through Sales > Settings), they appeared on the Sale Orders but not in the corresponding Invoice form view. Debug mode was required to see it among the form's fields. This commit fixes it by aligning with the Sale Order behaviour and properly display the `discount` field in the form view (when the setting is enabled) without relying on the debug mode. BTW, on mobile there was no way to see the discount as it was only visible in the list view... which is replaced by the kanban on small screens. So this commit makes it available on mobile. opw-2325978 closes odoo/odoo#57499 X-original-commit: 0ad60024c326adc7e25c71eaad2f9eccab26ee99 Signed-off-by: Adrien Dieudonné (adr) Signed-off-by: Pierre Paridans --- addons/account/views/account_move_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index e56340e14b2..27381a5e04f 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -869,7 +869,7 @@ - +