Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
5 Ответы
6795 Представления

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?

Related Posts Ответы Просмотры Активность
0
июл. 24
5379
0
дек. 24
706
0
мар. 24
1394
2
июн. 20
6006
4
окт. 19
33012