I use odoo19, Enterprise version and i want to create one menu in Products tab so how to create?
please give me guide
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- 프로젝트
- MRP
신고된 질문입니다
Sorry, I forget the explain. I want to customize only odoo studio, i do not want to use init, manifest etc..
Hello,
Click the Edit Menu button at the top-right corner. A pop-up window will appear. In that window, click New Menu at the bottom-right corner. Then, select the existing model and choose Product as the model. After adding menu you can adjust the sequence by dragging the menu.
Hi,
To create a new menu under the Products tab in Odoo 19 Enterprise, you first need a custom module (for example, product_custom_menu). Inside it, include essential files like __init__.py, __manifest__.py, and a views folder containing your menu XML file. In the manifest file, define the module’s details, add product as a dependency, and include your XML file in the data section.
Next, in the XML file (e.g., product_menu.xml), define your menu structure. Use the <menuitem> tag with parent="product.menu_products" to place your new menu under the existing Products tab. You can add a sub-menu with an action linked to a model or view, such as displaying a product list using the product.template model.
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Add a new menu under the main 'Products' menu -->
<menuitem id="menu_product_custom_root"
name="My Custom Menu"
parent="product.menu_products"
sequence="50"/>
<!-- Example action (optional): open a list of products -->
<record id="action_my_custom_product_list" model="ir.actions.act_window">
<field name="name">My Custom Product List</field>
<field name="res_model">product.template</field>
<field name="view_mode">tree,form</field>
</record>
<!-- Submenu linked to the action -->
<menuitem id="menu_product_custom_sub"
name="Product List"
parent="menu_product_custom_root"
action="action_my_custom_product_list"
sequence="1"/>
</odoo>
Finally, update your module in Odoo using the command line or the Odoo Apps interface, then install it. Once done, your new menu will appear under the Products tab, ready to open the linked model or view. Optionally, you can replace the product list with a custom model or dashboard view if desired.
Reference:
* https://www.cybrosys.com/blog/how-to-define-menu-and-actions-in-odoo-19
* https://www.youtube.com/watch?v=SNAxPiSZYQQ
* https://www.cybrosys.com/blog/menu-submenu-and-action-in-odoo
Hope it helps
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|
|
1
11월 25
|
331 | ||
|
|
2
11월 25
|
667 | ||
|
|
2
11월 25
|
481 | ||
|
|
0
11월 25
|
3 | ||
|
|
0
11월 25
|
5 |