Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
12353 มุมมอง

Hello guys i know how to create a new menu item at the top level through the backend , however what i also want to do is put or inherit  a already made menu items such as customers and qoutations under that menu through the backend .

For Example :

-> my newly created item

   -> Customers (sales or Accounting)

   -> Qoutations

   -> Contracts

   -> Customer Invoice

Is this possible guys ?

 

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

@ Mathias Colpaert , this is a good way of doing but what if there is a new update / soucre of odoo will the customized menu changes  stay  thats why i wanted to explore posibly doing it through the backend  .

อวตาร
ละทิ้ง

I don't know how to do that :) But I wouldn't spend any time trying to find out how to do that. As far as I know, the menus are saved in the database, so updating to a new version of the source won't affect them. (within the same stable release at least)

You can of course copy the menus from the other modules, and leave the existing ones be? You could do this in the backend.

ผู้เขียน

Ahh yes thats exactly want i want to do , not alter the currents one but just make an alternative route , so through backend could i just copy the code , and make the parent the custom menu i make ?

Yes, but don't forget to give a new ID when you copy!

คำตอบที่ดีที่สุด

This will helpful

 
 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด
  • Go to settings -> User interface -> Menu items
  • search for the menu you want, (eg Quotations). Click Edit
  • Change the parent menu to your menu
  • Save!

 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

ORIGINAL MENU @ sale_view.xml
<menuitem action="action_orders" id="menu_sale_order" parent="base.menu_sales" sequence="5" groups="base.group_sale_salesman,base.group_sale_manager"/>

 

YOUR CUSTOM VIEW using XML
Create your main menu with id="new_parent_menu_id"
<menuitem id="sale.menu_sale_order" parent="new_parent_menu_id" />
(OR)
<record id="sale.menu_sale_order" model="ir.ui.menu">
    <field name="parent_id">new_parent_menu_id</field>
</record>

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
มี.ค. 15
21093
0
ธ.ค. 24
1121
4
ต.ค. 19
33798
1
เม.ย. 17
3912
2
มี.ค. 15
7322