Hello,
I just created a new module in odoo 12 and then I modify the views.xml file by adding these lines of code:
<!-- Top menu item -->
<menuitem name="fmodule" id="fmodule.menu_root"/>
<!-- menu categories -->
<menuitem name="test 1" id="fmodule.menu_1" parent="fmodule.menu_root"/>
<menuitem name="test 2" id="fmodule.menu_2" parent="fmodule.menu_root"/>
<!-- actions -->
<menuitem name="List" id="fmodule.menu_1_list" parent="fmodule.menu_1"
action="fmodule.action_window"/>
<menuitem name="Server to list" id="fmodule" parent="fmodule.menu_2"
action="fmodule.action_server"/>
But it does not appear in the menu.