Odoo Help


Getting XML error after latest bzr update

on 5/26/13, 5:17 PM 2,133 views

[UPDATE] It looks like I am having problem with the current database. It does not even check the password and give error. When I create new one, I can login without any issue. So, it is a database issue. What was the cause?

Here is the beginnig of error:

    2013-05-27 18:11:14,032 1371 INFO mydatabase openerp.modules.module: module portal_hr_employees: creating or updating database tables

2013-05-27 18:11:14,152 1371 INFO mydatabase openerp.modules.loading: module portal_hr_employees: loading hr_employee_view.xml

2013-05-27 18:11:14,208 1371 ERROR mydatabase openerp.addons.base.ir.ir_ui_view:

<string>:39:0:ERROR:RELAXNGV:RELAXNG_ERR_ELEMWRONG: Did not expect element field there

2013-05-27 18:11:14,211 1371 ERROR mydatabase openerp.tools.convert: Parse error in /opt/openerp/addons/portal_hr_employees/hr_employee_view.xml:35:


I upgraded to the latest revision. But after that I can't get pass login screen and getting the following error:

OpenERP Server Error

Client Traceback (most recent call last):
  File "/opt/openerp/web/addons/web/http.py", line 204, in dispatch
    response["result"] = method(self, **self.params)
  File "/opt/openerp/web/addons/web/controllers/main.py", line 869, in authenticate
    req.session.authenticate(db, login, password, env)
  File "/opt/openerp/web/addons/web/session.py", line 115, in authenticate
    uid = self.proxy('common').authenticate(db, login, password, env)
  File "/opt/openerp/web/addons/web/session.py", line 30, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/opt/openerp/web/addons/web/session.py", line 103, in send
    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last):
  File "/opt/openerp/web/addons/web/session.py", line 89, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/opt/openerp/server/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/server/openerp/service/web_services.py", line 433, in dispatch
    return fn(*params)
  File "/opt/openerp/server/openerp/service/web_services.py", line 444, in exp_authenticate
    res_users = pooler.get_pool(db).get('res.users')
  File "/opt/openerp/server/openerp/pooler.py", line 49, in get_pool
    return get_db_and_pool(db_name, force_demo, status, update_module)[1]
  File "/opt/openerp/server/openerp/pooler.py", line 33, in get_db_and_pool
    registry = RegistryManager.get(db_name, force_demo, status, update_module)
  File "/opt/openerp/server/openerp/modules/registry.py", line 192, in get
  File "/opt/openerp/server/openerp/modules/registry.py", line 218, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/opt/openerp/server/openerp/modules/loading.py", line 341, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules, update_module)
  File "/opt/openerp/server/openerp/modules/loading.py", line 256, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/opt/openerp/server/openerp/modules/loading.py", line 188, in load_module_graph
    load_data(module_name, idref, mode)
  File "/opt/openerp/server/openerp/modules/loading.py", line 76, in <lambda>
    load_data = lambda *args: _load_data(cr, *args, kind='data')
  File "/opt/openerp/server/openerp/modules/loading.py", line 124, in _load_data
    tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
  File "/opt/openerp/server/openerp/tools/convert.py", line 954, in convert_xml_import
  File "/opt/openerp/server/openerp/tools/convert.py", line 847, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/opt/openerp/server/openerp/tools/convert.py", line 814, in _tag_record
    id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  File "/opt/openerp/server/openerp/addons/base/ir/ir_model.py", line 936, in _update
    model_obj.write(cr, uid, [res_id], values, context=context)
  File "/opt/openerp/server/openerp/addons/base/ir/ir_ui_view.py", line 208, in write
    return super(view, self).write(cr, uid, ids, vals, context)
  File "/opt/openerp/server/openerp/osv/orm.py", line 4201, in write
    self._validate(cr, user, ids, context)
  File "/opt/openerp/server/openerp/osv/orm.py", line 1544, in _validate
    raise except_orm('ValidateError', '\n'.join(error_msgs))
except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!')

version 7.0 x64 Ubuntu 13.04

on 5/26/13, 5:18 PM
On 5/27/13, 6:05 PM

I solved it by using Wolfgang Taferner`s method.

Just comment out addons/portal_hr_employees/hr_employee_view.xml and run the update (the view will therefore be deleted), uncomment the view and update again (the view will be recreated) Here is the direct link to this bug: link text

<!--        <record model="ir.ui.view" id="portal_hr_kanban_view_employees">
       <field name="name">HR - Employess Kanban</field>
        <field name="model">hr.employee</field>
        <field name="arch" type="xml">
                <field name="last_login"/>
                    <t t-name="kanban-box">
                        <div class="oe_employee_vignette">
                            <div class="oe_employee_image">
                                <a type="open"><img t-att-src="kanban_image('hr.employee', 'image_medium', record.id.value)" class="oe_employee_picture"/></a>
                            <div class="oe_employee_details">
                                    <a type="open"><field name="name"/></a>
                                    <li t-if="record.job_id.raw_value"><field name="job_id"/></li>
                                    <li t-if="record.work_location.raw_value"><field name="work_location"/></li>
                                    <li t-if="record.work_phone.raw_value">Tel: <field name="work_phone"/></li>
                                    <li t-if="record.mobile_phone.raw_value">Mobile: <field name="mobile_phone"/></li>
                                    <li t-if="record.work_email.raw_value"><a t-attf-href="mailto:#{record.work_email.value}"><field name="work_email"/></a></li>
                                    <li t-if="record.public_info.raw_value"><field name="public_info"/></li>
                            $('.oe_employee_picture').load(function() { if($(this).width() > $(this).height()) { $(this).addClass('oe_employee_picture_wide') } });


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

0 follower(s)


Asked: 5/26/13, 5:17 PM
Seen: 2133 times
Last updated: 3/16/15, 8:10 AM