Odoo Help


hi error in create menuitem in odoo cuatome module

on 5/9/16, 3:26 AM 1,058 views


i am use odoo v9 in ubuntu 14.04

i created one custom module after that i want to create menuitem but it return error like


AssertionError: Element openerp has extra content: data, line 3


whole trace back is

Traceback (most recent call last):

File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi


File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute

application_iter = app(environ, start_response)

File "/usr/lib/python2.7/dist-packages/openerp/service/server.py", line 246, in app

return self.app(e, s)

File "/usr/lib/python2.7/dist-packages/openerp/service/wsgi_server.py", line 184, in application

return application_unproxied(environ, start_response)

File "/usr/lib/python2.7/dist-packages/openerp/service/wsgi_server.py", line 170, in application_unproxied

result = handler(environ, start_response)

File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 1488, in __call__

return self.dispatch(environ, start_response)

File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 1462, in __call__

return self.app(environ, start_wrapped)

File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 579, in __call__

return self.app(environ, start_response)

File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 1637, in dispatch

ir_http = request.registry['ir.http']

File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 360, in registry

return openerp.modules.registry.RegistryManager.get(self.db) if self.db else None

File "/usr/lib/python2.7/dist-packages/openerp/modules/registry.py", line 355, in get


File "/usr/lib/python2.7/dist-packages/openerp/modules/registry.py", line 386, in new

openerp.modules.load_modules(registry._db, force_demo, status, update_module)

File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 334, in load_modules

force, status, report, loaded_modules, update_module)

File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 237, in load_marked_modules

loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)

File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 156, in load_module_graph

_load_data(cr, module_name, idref, mode, kind='data')

File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 98, in _load_data

tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)

File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 851, in convert_file

convert_xml_import(cr, module, fp, idref, mode, noupdate, report)

File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 925, in convert_xml_import


File "lxml.etree.pyx", line 3313, in lxml.etree._Validator.assert_ (src/lxml/lxml.etree.c:159862)

AssertionError: Element openerp has extra content: data, line 3

can you plz tell me how can i solve this error and create menu item in mu custom module in odo v9

Your xml is wrong at the line 3. Without having its content, not much we can do.

Martin Trigaux (mat)
on 5/9/16, 4:20 AM
Gustavo Hinojosa
On 5/9/16, 11:30 AM

Hi, hope you help

   <?xml version="1.0" encoding="utf-8"?>



<menuitem id="menu_principal" name="Principal" sequence="0"/>

<!-- Menu de Registro -->

<menuitem id="sub_registros" name="Registros" parent="menu_principal" sequence="0"/>

<!-- formulario productos -->

<menuitem id="menu_product_variant_config_stock" action="product.product_template_action_product" name="Productos" parent="sub_registros" sequence="1"/> 



Unknown error when sanitizing

on 5/10/16, 1:03 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 5/9/16, 3:26 AM
Seen: 1058 times
Last updated: 5/9/16, 11:30 AM