Skip to Content
Menu
This question has been flagged
5 Replies
6116 Views

I'm trying to make a new navigation point at the topbar navigation in odoo8

With this I can make that with a navigation on the left side.

       <record model="ir.actions.act_window" id="buttons_example_action">
<field name="name">timesheet NEW</field>
<field name="res_model">hr_timesheet_sheet.sheet</field>
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
<field name='view_id' ref='test.hr_timesheet_sheet_form_presence'/>
</record>

<!-- top level menu: no parent -->
<menuitem id="main_button_menu" name="Timesheet Head Menu"/>
<menuitem id="button_menu" name="Timesheet NEW" parent="main_button_menu"/>
<menuitem id="menu_detail_logging" parent="button_menu" action="buttons_example_action" sequence="20"/>

My problem is now, that when I want more links on the left navigation, I can't get it.

How can I make that easly with the first navigation "timesheet NEW" linked to the hr_timesheet_sheet.sheet  view?



Avatar
Discard

Hello, are you using the Admin user ?

Author

yes I'm using only admin user

Best Answer

This code works in V8... fyi


"Sales" is Top menu,

"Partners" and "Products" main left menu

others are sub menu in left side

<menuitem name="Sales" id="menu_root_yyy" groups="base.group_user" sequence="15"/>


<menuitem id="menu_partners" name="Partners" parent="xxx.menu_root_yyy" sequence="0" groups="base.group_user"/>

<menuitem name="Customers" id="menu_customer_action_yyy" parent="menu_partners" action="action_customers_yyy" sequence="10"/>

<menuitem name="Praticiens" id="menu_praticien_action_yyy" parent="menu_partners" action="action_praticiens_yyy" sequence="20"/>

<menuitem name="Commercials" id="menu_commercial_action_yyy" parent="menu_partners" action="action_commercials_yyy" sequence="30"/>

<menuitem name="All partners" id="menu_all_partner_action_yyy" parent="menu_partners" action="action_all_partners_yyy" sequence="40"/>

<menuitem id="menu_products" name="Products" parent="xxx.menu_root_yyy" sequence="10" groups="base.group_user"/>

<menuitem name="Products" id="menu_product_action_yyy" parent="menu_products" action="product_template_action_yyy" sequence="10"/>

<menuitem id="menu_product template" action="xxx.product_normal_action_sell" parent="menu_products" sequence="11"/>

Avatar
Discard
Author

this is not working, How can I make a simple menuitem very simple

Can you post your [all xml file] code here , so we may figure out your problem ...

Author Best Answer

Why I'm getting error, I only want to link the timesheet view in the action. can someone help?

        <menuitem id="main_menu" name="Test Topbar"/>

<menuitem id="section_main_menu" parent="main_menu" />

<menuitem id="real_menu" parent="section_main_menu" action="act_hr_timesheet_sheet_form"/>



Avatar
Discard

maybe because you have no sub menu ;)

Add one submenu under partners and it should works...

Author

and how?

Related Posts Replies Views Activity
0
Jul 24
4698
0
Dec 24
40
0
Mar 24
576
2
Jun 20
4984
4
Oct 19
31656