Greetings Everyone,<\/p>\n
In this blog-post tutorial, you will learn how to create an Action and its Menuitem in an Odoo 8 module.<\/p>\n
Here we’ll learn about the Window Action.<\/p>\n
Earlier in my previous blog-posts, I created a student model<\/a>, then I created its Form View<\/a> followed by Tree View<\/a>. \u00c2\u00a0Now in this tutorial, I will create Action and Menuitem for it.<\/p>\nCode for creating an Action and its MenuItem:-<\/h3>\n
<!-- Action for Student Information -->\r\n\t\t<record id=\"action_student_information\" model=\"ir.actions.act_window\">\r\n\t\t\t<field name=\"name\">Student Information<\/field>\r\n\t\t\t<field name=\"res_model\">student.student<\/field>\r\n\t\t\t<field name=\"view_type\">form<\/field>\r\n\t\t\t<field name=\"view_mode\">tree,form<\/field>\r\n\t\t<\/record>\r\n\r\n\t\t<!-- Top bar menu -->\r\n\t\t<menuitem id=\"menu_college_main\" name=\"College\"\/>\r\n\t\t<!-- Left Sidebar MenuHead -->\r\n\t\t<menuitem id=\"menu_student_main\" name=\"Student\" parent=\"menu_college_main\"\/>\r\n\t\t<!-- Left Sidebar Menu -->\r\n\t\t<menuitem id=\"menu_student_info\" parent=\"menu_student_main\" action=\"action_student_information\"\/><\/pre>\n
Steps for creating\u00c2\u00a0Action:-<\/h2>\n
\n
SnapShot of Eclipse IDE:-<\/h3>\n