Odoo Help


arc: Invalid XML or View Achitecture! Log Attached

on 4/29/14, 11:32 AM 956 views

Dear all, I found several questions about the error on the question title but none related to my situation. I am trying to install a custom module, named account_expense from Cubic ERP and having this error.

On the openerp-server.log I found:

Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenERP 7.0\Server\server\openerp\addons\base\ir\ir_ui_view.py", line 126, in _check_render_view
  File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\orm.py", line 2239, in fields_view_get
  File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\orm.py", line 2197, in apply_view_inheritance
  File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\orm.py", line 2181, in apply_inheritance_specs
  File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\orm.py", line 2074, in raise_view_error
AttributeError: View definition error for inherited view '' on model 'account.transfer': Element '<xpath expr="//group[@name='two']">' not found in parent view 'account_transfer.view_account_transfer_form'
2014-04-29 13:36:14,921 4324 ERROR testes_deploy openerp.tools.convert: Parse error in file:///C:/Program%20Files%20(x86)/OpenERP%207.0/Server/server/openerp/addons-pack/account_expense/account_view.xml:5: 
<record model="ir.ui.view" id="view_account_transfer_form">
            <field name="name">Account Transfer Form inherit Expense</field>
            <field name="model">account.transfer</field>
            <field name="inherit_id" ref="account_transfer.view_account_transfer_form"/>
            <field name="arch" type="xml">
                <data><xpath expr="//field[@name='name']" position="before">
                    <label string="Expense Transfer " attrs="{'invisible':['|',('name','=','/'),('type','!=','expense')]}"/>
                <xpath expr="//group[@name='two']" position="inside">
                    <field name="expense_id"/>
Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\tools\convert.py", line 847, in parse
  File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\tools\convert.py", line 814, in _tag_record
  File "C:\Program Files (x86)\OpenERP 7.0\Server\server\openerp\addons\base\ir\ir_model.py", line 967, in _update
  File "C:\Program Files (x86)\OpenERP 7.0\Server\server\openerp\addons\base\ir\ir_ui_view.py", line 103, in create
  File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\orm.py", line 4478, in create
  File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\orm.py", line 1548, in _validate
except_orm: ('ValidateError', u'Ocorreu um erro ao validar o campo(s) arch: Invalid XML for View Architecture!')
2014-04-29 13:36:14,924 4324 ERROR testes_deploy openerp.netsvc: ValidateError
Ocorreu um erro ao validar o campo(s) arch: Invalid XML for View Architecture!
Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\netsvc.py", line 292, in dispatch_rpc
  File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\service\web_services.py", line 626, in dispatch
  File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\osv.py", line 188, in execute_kw
  File "C:\Program Files (x86)\OpenERP 7.0\Server\server\.\openerp\osv\osv.py", line 144, in wrapper
except_osv: ('ValidateError', u'Ocorreu um erro ao validar o campo(s) arch: Invalid XML for View Architecture!')
2014-04-29 13:36:14,930 4324 INFO testes_deploy werkzeug: - - [29/Apr/2014 13:36:14] "POST /web/dataset/call_button HTTP/1.1" 200 -

I think it's something related to

'<xpath expr="//group[@name='two']">'

Can anyone help me?


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 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: 4/29/14, 11:32 AM
Seen: 956 times
Last updated: 3/16/15, 8:10 AM