Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5 Trả lời
7027 Lượt xem

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?



Ảnh đại diện
Huỷ bỏ

Hello, are you using the Admin user ?

Tác giả

yes I'm using only admin user

Câu trả lời hay nhất

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"/>

Ảnh đại diện
Huỷ bỏ
Tác giả

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 ...

Tác giả Câu trả lời hay nhất

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"/>



Ảnh đại diện
Huỷ bỏ

maybe because you have no sub menu ;)

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

Tác giả

and how?

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 24
5668
0
thg 12 24
1014
0
thg 3 24
1707
2
thg 6 20
6400
4
thg 10 19
33553