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

I have developed custom module sites.sites

i want to add this module link in Inventory module ---> Inventory control. 

please share the xml and python code to achieve this.

 

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

Hi,

For adding new menu to an existing module in odoo, see: https://www.youtube.com/watch?v=fdTiRHYaLyY

Thanks

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

Hi,

You can create a menu under the inventory control module for this you have to set the parent of new menu as inventory control. Then define the action for the menu also its corresponding views also define the new fields in py file.
id of the inventory control menu "stock.menu_stock_inventory_control". you can also refer the below code,

<record id="action_rental_report" model="ir.actions.act_window">
<field name="name">Rental Report</field>
<field name="res_model">rental.report.wizard</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="view_rental_report"/>
<field name="target">new</field>
</record>

<menuitem id="rental_report_menu" name="Rental Report" parent="sales_team.menu_sale_report" action="action_rental_report"/>
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Is this possible in Odoo Studio? We're just on Odoo online

อวตาร
ละทิ้ง