Skip to content
Snippets Groups Projects
Commit 620412fa authored by Nicolas (vin)'s avatar Nicolas (vin)
Browse files

[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: default avatarLaurent Smet <smetl@users.noreply.github.com>
parent 2861cf29
No related branches found
No related tags found
No related merge requests found
...@@ -60,6 +60,7 @@ You could use this simplified accounting in case you work with an (external) acc ...@@ -60,6 +60,7 @@ You could use this simplified accounting in case you work with an (external) acc
'views/report_journal.xml', 'views/report_journal.xml',
'views/tax_adjustments.xml', 'views/tax_adjustments.xml',
'wizard/wizard_tax_adjustments_view.xml', 'wizard/wizard_tax_adjustments_view.xml',
'views/ir_module_views.xml',
'views/res_config_settings_views.xml', 'views/res_config_settings_views.xml',
'views/account_journal_dashboard_view.xml', 'views/account_journal_dashboard_view.xml',
'views/account_portal_templates.xml', 'views/account_portal_templates.xml',
......
<?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 @@ ...@@ -9,7 +9,7 @@
'search_default_category_id': ref('base.module_category_accounting_localizations_account_charts'), 'search_default_category_id': ref('base.module_category_accounting_localizations_account_charts'),
'searchpanel_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>
<record id="res_config_settings_view_form" model="ir.ui.view"> <record id="res_config_settings_view_form" model="ir.ui.view">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment