3
0
Fork 0
web_techsystech/web_responsive/views/res_users_views.xml

65 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2023 Taras Shabaranskyi
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
<odoo>
<record id="res_users_view_form_apps_menu_preferences" model="ir.ui.view">
<field name="name">res.users.apps.menu.preferences.form</field>
<field name="model">res.users</field>
<field name="arch" type="xml">
<form>
<group>
<group>
<field
name="apps_menu_search_type"
string="Search Type"
help="Apps Menu Search Type"
/>
</group>
<group>
<field
name="apps_menu_theme"
string="Theme"
help="Apps Menu Theme"
/>
</group>
</group>
<div class="mt-3">
<h3>Search Type Help</h3>
<table class="table table-bordered w-100 w-lg-50">
<tr>
<th>Canonical</th>
<td>uses a standard algorithm</td>
</tr>
<tr>
<th>Fuse</th>
<td>a new search algorithm is used</td>
</tr>
<tr>
<th>Command Palette</th>
<td>the standard odoo search tool</td>
</tr>
</table>
</div>
</form>
</field>
</record>
<record
id="res_users_view_form_apps_menu_preferences_action"
model="ir.actions.act_window"
>
<field name="name">Apps Menu Preferences</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.users</field>
<field name="view_mode">form</field>
<field name="target">new</field>
<field
name="view_ids"
eval="[
Command.clear(),
Command.create({'view_mode': 'form', 'view_id': ref('web_responsive.res_users_view_form_apps_menu_preferences')})
]"
/>
</record>
</odoo>