From 98a55917a602c0c47093b4270ebc4e8b416ecf32 Mon Sep 17 00:00:00 2001 From: wan Date: Mon, 12 Aug 2019 12:46:43 +0000 Subject: [PATCH] [FIX] account: expand by default account move lines tree view The commit https://github.com/odoo/odoo/commit/c429c0e0bd1208694623d5567682c43f9f0e51b7 removed context keys that were used to expand the view in some cases here: https://github.com/odoo/odoo/blob/c429c0e0bd1208694623d5567682c43f9f0e51b7/addons/account/views/account_move_views.xml#L162. This commit adds a new context key, clearer than the previous one. Also, the commit https://github.com/odoo/odoo/commit/bc131c0cfb51c953de8ec41fb820c8c7831eefb5 duplicated some actions. We remove them here too. closes odoo/odoo#35653 Signed-off-by: Quentin De Paoli (qdp) --- addons/account/views/account_move_views.xml | 45 +++------------------ 1 file changed, 5 insertions(+), 40 deletions(-) diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index 68a5e6dc73e..5b6f3a9eb82 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -159,7 +159,7 @@ account.move.line - + @@ -959,7 +959,7 @@ - {'journal_type':'sales', 'search_default_group_by_move': 1, 'search_default_posted':1, 'search_default_sales':1, 'name_groupby':1} + {'journal_type':'sales', 'search_default_group_by_move': 1, 'search_default_posted':1, 'search_default_sales':1, 'name_groupby':1, 'expand': 1} Sales account.move.line [('display_type', 'not in', ('line_section', 'line_note'))] @@ -968,7 +968,7 @@ - {'journal_type':'purchase', 'search_default_group_by_move': 1, 'search_default_posted':1, 'search_default_purchases':1, 'name_groupby':1} + {'journal_type':'purchase', 'search_default_group_by_move': 1, 'search_default_posted':1, 'search_default_purchases':1, 'name_groupby':1, 'expand': 1} Purchase account.move.line [('display_type', 'not in', ('line_section', 'line_note'))] @@ -977,7 +977,7 @@ - {'journal_type':'bank', 'search_default_group_by_move': 1, 'search_default_posted':1, 'search_default_bank':1, 'search_default_cash':1, 'name_groupby':1} + {'journal_type':'bank', 'search_default_group_by_move': 1, 'search_default_posted':1, 'search_default_bank':1, 'search_default_cash':1, 'name_groupby':1, 'expand': 1} Bank and Cash account.move.line [('display_type', 'not in', ('line_section', 'line_note'))] @@ -986,7 +986,7 @@ - {'journal_type':'general', 'search_default_group_by_move': 1, 'search_default_posted':1, 'search_default_misc_filter':1, 'name_groupby':1} + {'journal_type':'general', 'search_default_group_by_move': 1, 'search_default_posted':1, 'search_default_misc_filter':1, 'name_groupby':1, 'expand': 1} Miscellaneous account.move.line [('display_type', 'not in', ('line_section', 'line_note'))] @@ -1012,41 +1012,6 @@ tree,pivot,graph,form,kanban - - {'journal_type':'bank', 'search_default_group_by_move': 1, 'search_default_posted':1, 'search_default_bank':1, 'search_default_cash':1, 'name_groupby':1} - Bank and Cash - account.move.line - [('display_type', 'not in', ('line_section', 'line_note'))] - - tree,pivot,graph,form,kanban - - - - {'journal_type':'general', 'search_default_group_by_move': 1, 'search_default_posted':1, 'search_default_misc_filter':1, 'name_groupby':1} - Miscellaneous - account.move.line - [('display_type', 'not in', ('line_section', 'line_note'))] - - tree,pivot,graph,form,kanban - - - - {'journal_type':'general', 'search_default_group_by_account': 1, 'search_default_posted':1} - General Ledger - account.move.line - [('display_type', 'not in', ('line_section', 'line_note'))] - - tree,pivot,graph,form,kanban - - - - {'journal_type':'general', 'search_default_group_by_partner': 1, 'search_default_posted':1, 'search_default_payable':1, 'search_default_receivable':1, 'search_default_unreconciled':1} - Partner Ledger - account.move.line - [('display_type', 'not in', ('line_section', 'line_note'))] - - - Journal Items account.move.line