I need to show user tagged to employee form view when user logged in to system(User should see his employee details in form view)
I tried like this
<record id="hr_profile" model="ir.actions.act_window">
<field name="name">My Information</field>
<field name="res_model">hr.employee</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree,kanban</field>
<field name="domain">[('user_id','=',user.id)]</field>
<field name="context">{'my_self':1}</field> </record>
<menuitem parent ="hr.menu_hr_main" sequence="1" string="My Details" id="menu_self" action="hr_profile"/>
I inherited search view and passed arg(i.e., [('user_id','=',user.id)]) but its not even calling the search method and its showing new form when I given default form in action,but search method called when we used default view tree or kanban
help me out