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

Hello,

i was trying to add a new menu to an already existing custom module and i suddenly encountered an error message "KeyError: u'ir.actions.menu'"

i tried to look it up but i haven't found anything

please help

 

อวตาร
ละทิ้ง

Hi

Upgrade base module and then check it

hi

You probably have a syntax error in xml code,It would be more helpful if you can post your code.

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

My dear good sir,

I have countered the same problem, turns out it caused by using the same IDs within both action and menu.

A sample:

<record id="an_id" .... >

<menuitem id="an_id" .... >


You are welcome.


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

This error occurred to me and I take several hours trying to discover what caused it, and in the last I find that I make a stupid something I didn't notice It .
I named  the id of the action and the menuitem with the same name. 
so you need to delete the ation and the menu from database and rename the id of the menu and the action. 
This solve the error

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

I'm facing the same problem. Did someone had seen this lately?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Server actions in menuItem แก้ไขแล้ว
2
ก.ย. 23
6078
How does Odoo's action manager work? แก้ไขแล้ว
1
เม.ย. 23
3451
2
พ.ย. 22
3594
1
ม.ค. 21
4636
ir.actions.server SAVE BUTTON MISSING? แก้ไขแล้ว
1
ก.ค. 16
5903