Odoo Help

Welcome!

This community 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.

0

AssertionError: Element record failed to validate attributes

By
biligsaikhan
on 10/31/14, 2:53 AM 719 views

I got this error while trying to install custom module. I have 3 python files only. __init__, __openerp__ and module. what is wrong with it?

Traceback (most recent call last): File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\.\openerp\http.py", line 500, in _handle_exception File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\.\openerp\http.py", line 517, in dispatch File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\.\openerp\http.py", line 283, in _call_function File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\.\openerp\service\model.py", line 113, in wrapper File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\.\openerp\http.py", line 280, in checked_call File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\.\openerp\http.py", line 733, in __call__ File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\.\openerp\http.py", line 376, in response_wrap File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\openerp\addons\web\controllers\main.py", line 948, in call_button File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\openerp\addons\web\controllers\main.py", line 936, in _call_kw File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\.\openerp\api.py", line 237, in wrapper File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\openerp\addons\base\module\module.py", line 450, in button_immediate_install File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\.\openerp\api.py", line 237, in wrapper File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\openerp\addons\base\module\module.py", line 498, in _button_immediate_function File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\.\openerp\modules\registry.py", line 324, in new File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\.\openerp\modules\loading.py", line 358, in load_modules File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\.\openerp\modules\loading.py", line 263, in load_marked_modules File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\.\openerp\modules\loading.py", line 182, in load_module_graph File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\.\openerp\modules\loading.py", line 118, in _load_data File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\.\openerp\tools\convert.py", line 899, in convert_file File "C:\Program Files (x86)\Odoo 8.0-20141014-000207\server\.\openerp\tools\convert.py", line 976, in convert_xml_import File "lxml.etree.pyx", line 3313, in lxml.etree._Validator.assert_ (src\lxml\lxml.etree.c:159862) AssertionError: Element record failed to validate attributes

0

Ludo - Neobis

--Ludo - Neobis--
2387
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

Ludo - Neobis
On 10/31/14, 4:55 AM

I think most of will be unable to answer this for you based on this information. Perhaps you can post your code for the __openerp__.py file, since that is the file that is being loaded when installing your module?

0

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
On 10/31/14, 8:44 AM

The cause is when you're loading some data (in __openerp__.py you can specify which data files to load in the 'data' key) the XML does not conform to the RNG specified by OpenERP.  So, you need to fix the XML file.  If you need help in doing so, you need to provide the content of the XML file.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/31/14, 2:53 AM
Seen: 719 times
Last updated: 3/16/15, 8:10 AM