[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 <smetl@users.noreply.github.com>
This commit is contained in:
Nicolas (vin)
2021-02-26 14:27:14 +00:00
parent 2861cf29b6
commit 620412fa0a
3 changed files with 18 additions and 1 deletions
+1
View File
@@ -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',
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="view_module_filter_inherit_account" model="ir.ui.view">
<field name="name">ir.module.module.list.inherit.account</field>
<field name="model">ir.module.module</field>
<field name="inherit_id" ref="base.view_module_filter"/>
<field name="mode">primary</field>
<field name="arch" type="xml">
<xpath expr="//searchpanel" position="replace">
<!-- Hide the search panel -->
</xpath>
</field>
</record>
</data>
</odoo>
@@ -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'),
}"/>
<field name="search_view_id" ref="base.view_module_filter"/>
<field name="search_view_id" ref="view_module_filter_inherit_account"/>
</record>
<record id="res_config_settings_view_form" model="ir.ui.view">