Hi Odoo developers,
I'm following the "Building a module" tutorial from Odoo webpage, and I was wondering if I can bind a window action to a first level menu in the sidebar, because I don't want to create a child menu to do this.
<record model="ir.actions.act_window" id="action_openacademy_list_courses">
<field name="name">Cursos</field>
<field name="res_model">openacademy.course</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="openacademy_menu_root" name="Open Academy" sequence="1"/>
<menuitem id="openacademy_menu_coursesroot" name="Course Management"
parent="openacademy_menu_root"
action="action_openacademy_list_courses"/>
In the above source code, the "Course Management" menu is a first level menu in the sidebar, but although a window action is associated to it, I can't click in this menu to trigger the action. Is it possible to do this?.
Thank you.
Thank you for your answer Jèrèmy, but what changes should I do in the file addons/web/views/webclient_templates.xml?. I located your code starting in line 162 in this file.
I have updated my response... Let us know...
Thank you Jérémy. I appreciate your help. I'll try your solution.