تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
5 الردود
6796 أدوات العرض

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?



الصورة الرمزية
إهمال

Hello, are you using the Admin user ?

الكاتب

yes I'm using only admin user

أفضل إجابة

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

الصورة الرمزية
إهمال
الكاتب

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

الكاتب أفضل إجابة

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



الصورة الرمزية
إهمال

maybe because you have no sub menu ;)

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

الكاتب

and how?

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يوليو 24
5415
0
ديسمبر 24
712
0
مارس 24
1426
2
يونيو 20
6015
4
أكتوبر 19
33027