From 620412fa0afb1c045fbb20486a621173f5dacebc Mon Sep 17 00:00:00 2001 From: "Nicolas (vin)" Date: Fri, 6 Nov 2020 08:10:13 +0000 Subject: [PATCH] [IMP] account: Hide the search panel when opening the app menu from acc The search panel showing app categories in the app list is unnecessary when opening the list with the context of searching for a localization. This will change it so that panel is hidden in this case. task id #2370971 closes odoo/odoo#61456 Signed-off-by: Laurent Smet --- addons/account/__manifest__.py | 1 + addons/account/views/ir_module_views.xml | 16 ++++++++++++++++ .../account/views/res_config_settings_views.xml | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 addons/account/views/ir_module_views.xml diff --git a/addons/account/__manifest__.py b/addons/account/__manifest__.py index 7ed8cc554d6..6570d374608 100644 --- a/addons/account/__manifest__.py +++ b/addons/account/__manifest__.py @@ -60,6 +60,7 @@ You could use this simplified accounting in case you work with an (external) acc 'views/report_journal.xml', 'views/tax_adjustments.xml', 'wizard/wizard_tax_adjustments_view.xml', + 'views/ir_module_views.xml', 'views/res_config_settings_views.xml', 'views/account_journal_dashboard_view.xml', 'views/account_portal_templates.xml', diff --git a/addons/account/views/ir_module_views.xml b/addons/account/views/ir_module_views.xml new file mode 100644 index 00000000000..907112e5edb --- /dev/null +++ b/addons/account/views/ir_module_views.xml @@ -0,0 +1,16 @@ + + + + + ir.module.module.list.inherit.account + ir.module.module + + primary + + + + + + + + diff --git a/addons/account/views/res_config_settings_views.xml b/addons/account/views/res_config_settings_views.xml index dcd749815cb..91549b00aa0 100644 --- a/addons/account/views/res_config_settings_views.xml +++ b/addons/account/views/res_config_settings_views.xml @@ -9,7 +9,7 @@ 'search_default_category_id': ref('base.module_category_accounting_localizations_account_charts'), 'searchpanel_default_category_id': ref('base.module_category_accounting_localizations_account_charts'), }"/> - +