[trunk] error trying to load a custom menu

Bug #655101 reported by Ferdinand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

Error occurred while validating the field(s) parent_id: Error ! You can not create recursive Menu.

<?xml version="1.0"?>
<openerp>
  <data>
    <menuitem
      id="menu_dimu"
      name="Distrimusic"/>
  </data>
</openerp>

BTW I get the same error if I want to attach a menu to a "name" of a menu end not the id of a menu.

Is this intention or an error?

Revision history for this message
Ferdinand (office-chricar) wrote :

the problem was the sequence of loading the files

works
 "update_xml" : [ "base_view.xml","security/dimu_base_security.xml", "security/ir.model.access.csv"]

fails
 "update_xml" : [ "security/dimu_base_security.xml", "security/ir.model.access.csv","base_view.xml"]

nevertheless the error message is very much miss leading.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Dr. Ferdinand,

I tried with the same xml menuitem and it works quite normal.

Can you attach a module?

Thanks.

Revision history for this message
Ferdinand (office-chricar) wrote :

here is the module

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello,

The menus are getting installed as follows on stable.

Thanks.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

In trunk, You won't see any menu as there is no action attached in the module.
Thanks.

Changed in openobject-server:
milestone: none → 6.0
status: New → Confirmed
status: Confirmed → Invalid
Revision history for this message
Ferdinand (office-chricar) wrote :

Thanks
I know nothing is displayed in V6 - but that was not the point - I couldn't install the menu at all because of

Error occurred while validating the field(s) parent_id: Error ! You can not create recursive Menu.

only after changing the sequence of files as described in comment #1 the module loads without problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.