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

Hello, I have Odoo 8.

I am developing a report and I want to put it in a specific menu. So I have to know the id of that menuitem, and then set the "parent" of the menuitem what I am creating. How can I know the menuitem id of a specific menu item?

Thanks!

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

Did you just want to hard code it?

If so the menu id should show in the extended address when you navigate to it. Look for "&menu_id="

อวตาร
ละทิ้ง
ผู้เขียน

I see a number in &menu_id, how can I traduce this number to a valid string id? And I want to know the id of a parent menu, which I can't click (For example: Purchase->Configuration)

You could probably temporarily modify the ir.ui.menu tree view to include ID and parent id? This should allow you to get the id from menu items in settings. As for the string id not sure what you are asking - are you talking about the full path / complete name?

ผู้เขียน

I am asking for the complete name, for example: id="menu_fleet_reporting"

Ok then. Well for complete name it has the label of full path in the model. This is visible on the menu item configuration form.

Not sure if you will need to replace "\" and spaces with underscores?

Related Posts ตอบกลับ มุมมอง กิจกรรม
7
พ.ค. 20
6531
0
เม.ย. 16
3126
2
เม.ย. 15
6039
Hide field in a tree view แก้ไขแล้ว
11
ก.ย. 21
32280
Group by on field of a related model. แก้ไขแล้ว
2
ม.ค. 24
15125