I have created one user called Asset manager,here I want to add one menu item(i.e complaints) to an existing maintenance module.Here is my code..Please let me know what I did a mistake in that code
<record id="asset_complaint_tree" model="ir.ui.view">
<field name="name">Asset Complaint</field>
<field name="model">asset.complaint</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Complaints">
<field name="asset_id"/>
<field name="product_id"/>
<field name="no_of_defected_products"/>
<field name="state"/>
</tree>
</field>
</record>
<record model="ir.actions.act_window" id="asset_complaint_action">
<field name="name">Asset Complaint</field>
<field name="res_model">asset.complaint</field>
<field name="view_mode">tree,form</field>
<field name="target">current</field>
</record>
<menuitem id="asset_complaint_menu" name="Complaints" action="asset_complaint_action" parent="asset.menu_maintenance_assets"/>
What is it your problem? Getting error or your menu not showing in your view?
If you get any error please specify
see: https://www.youtube.com/watch?v=fdTiRHYaLyY