Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3 Vastaukset
9567 Näkymät

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

 

Avatar
Hylkää

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.

Paras vastaus

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.


Avatar
Hylkää
Paras vastaus

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

Avatar
Hylkää
Paras vastaus

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

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
syysk. 23
5903
1
huhtik. 23
3245
2
marrask. 22
3461
1
tammik. 21
4480
1
heinäk. 16
5710