<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <!-- Custom Tree View for user -->
        <record id="view_user_tree_custom" model="ir.ui.view">
            <field name="name">res.users.tree</field>
            <field name="model">res.users</field>
            <field name="arch" type="xml">
                <tree string="Users"  default_order="create_date desc">
                    <field name="name"/>
                </tree>
            </field>
        </record>

        <record id="view_user_form_custom" model="ir.ui.view">
            <field name="name">res.users.form.custom</field>
            <field name="model">res.users</field>
            <field name="arch" type="xml">
                <form>
                    <header>
                        <button string="Set Password"
                                type="object" name="action_change_password" class="btn-primary"
                                invisible="id == False" />
                    </header>
                    <sheet>
                        <div class="oe_avatar_group">
                            <field name="image_1920" widget="image" class="oe_avatar"/>
                        </div>
                        <group>
                            <group>
                                <field name="name"/>
                                <field name="email" invisible="1"/>
                                <field name="login"/>
                                <field name="phone" placeholder="+998 xx xxx xx xx"/>
                                <field name="role"/>
                                <field name="region_id" invisible="is_region"/>
                                <field name="is_region" invisible="1"/>
                                <field
                                        name="district_id"
                                        invisible="is_district"
                                        domain="[('region_id', '=', region_id)]"
                                />
                                <field name="is_district" invisible="1"/>
                                <field name="position"/>
                            </group>
                        </group>
                    </sheet>
                </form>
            </field>
        </record>


        <record id="view_user_kanban_custom" model="ir.ui.view">
            <field name="name">res.users.kanban</field>
            <field name="model">res.users</field>
            <field name="arch" type="xml">
                <kanban class="o_res_partner_kanban">
                    <field name="image_1920" widget="image"/>
                    <field name="name"/>
                    <field name="email"/>
                    <field name="phone"/>
                    <field name="role"/>
                    <field name="region_id"/>
                    <field name="district_id"/>
                    <field name="position"/>
                </kanban>
            </field>
        </record>


        <record id="action_user_custom" model="ir.actions.act_window">
            <field name="name">Users</field>
            <field name="res_model">res.users</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_user_form_custom"/>
        </record>

        <record id="action_user_list" model="ir.actions.act_window">
            <field name="name">Users</field>
            <field name="res_model">res.users</field>
            <field name="view_mode">kanban,tree</field>
            <field name="view_id" ref="view_user_tree_custom"/>
        </record>
    </data>
    <menuitem
        id="user_menu"
        name="Admin Users Menu"
        sequence="1"/>

    <menuitem
        id="user_managers_menu"
        name="User Managers"
        parent="user_menu"
        action="action_user_list"
        sequence="1"/>

    <menuitem
        id="user_add_menu"
        name="Add User"
        parent="user_menu"
        action="action_user_custom"
        sequence="2"/>
</odoo>
 in this odoo17 enterprise view when i click to item in tree view, its not opening detail of it, i need to trigger my action when i click to item in tree view to see its detail and crud it, do it inside of this xml in very short way