Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
9508 Lượt xem

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

 

Ảnh đại diện
Huỷ bỏ

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.

Câu trả lời hay nhất

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.


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 9 23
5871
1
thg 4 23
3197
2
thg 11 22
3416
1
thg 1 21
4441
1
thg 7 16
5680