From e261cddd73e59886fb453a6c14deae263dfc3f56 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Thu, 25 Jun 2020 10:43:00 +0000 Subject: [PATCH] [FIX] various: remove duplicate fields in tree views Remove duplicate fields in tree views / kanban (outside of templates). A field should not be present twice in a tree view. If one of the nodes has custom attributes then behavior of other nodes is somehow unpredictable. Having field present only once gives a more coherent behavior. Xpaths could also lead to weird results if fields are present several times as developers generally do not expect fields to be present several times in a view. An heuristic to detect duplicate fields will land soon in master. As this commit targets a stable version only view fixes are provided. Task ID-2329114 PR odoo/odoo#56946 X-original-commit: 977c2b9d12419fba3bada1ebefcca15f051ca565 --- addons/account/views/account_move_views.xml | 4 ++-- addons/hr_holidays/views/hr_leave_views.xml | 1 - addons/mass_mailing/views/mailing_mailing_views.xml | 1 - addons/stock/views/stock_move_views.xml | 1 - addons/stock/views/stock_orderpoint_views.xml | 1 - 5 files changed, 2 insertions(+), 6 deletions(-) diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index f16e766cf11..92d8578c576 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -286,7 +286,8 @@ primary - + + @@ -294,7 +295,6 @@ - diff --git a/addons/hr_holidays/views/hr_leave_views.xml b/addons/hr_holidays/views/hr_leave_views.xml index 98de5bbbbfc..705ca75d31a 100644 --- a/addons/hr_holidays/views/hr_leave_views.xml +++ b/addons/hr_holidays/views/hr_leave_views.xml @@ -460,7 +460,6 @@ -