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

About install locall model in openerp 7

By
jackyhou
on 3/26/14, 7:31 PM 1,337 views

Hi everyone, I just start to learning the openerp from last weeks, I have install openerp 7 in my windows 7 and doing some basic job, I have installed some modules from openerp website, It is working fine. but when I want to install some local model, it is allways show me:

ValidateError Error occurred while validating the field(s) arch: Invalid XML for View Architecture! '

Can you tell me where is the problem? and how to fix it.

Thanks for you help.

Jacky

0

Nehal

--Nehal--
2090
| 5 2 8
Ahmadabad, India
--Nehal--
Nehal
On 3/27/14, 1:45 AM

Hi,

Check your openerp-server.log file where you will find the complete traceback for Invalid XML architecture. As this is not sufficient information to know the cause of Error.

0
jackyhou
On 3/29/14, 8:35 AM

2014-03-29 11:06:50,703 2452 WARNING hyde openerp.addons.base.ir.ir_ui_view: Setting the type field is deprecated in the ir.ui.view model. 2014-03-29 11:06:50,963 2452 WARNING hyde openerp.addons.base.ir.ir_ui_view: Setting the type field is deprecated in the ir.ui.view model. 2014-03-29 11:06:51,003 2452 WARNING hyde openerp.addons.base.ir.ir_ui_view: Setting the type field is deprecated in the ir.ui.view model. 2014-03-29 11:06:51,335 2452 WARNING hyde openerp.addons.base.ir.ir_ui_view: Setting the type field is deprecated in the ir.ui.view model. 2014-03-29 11:06:51,556 2452 ERROR hyde openerp.addons.base.ir.ir_ui_view: Can't render view for model: sale.order Traceback (most recent call last): File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server\openerp\addons\base\ir\ir_ui_view.py", line 126, in _check_render_view File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\osv\orm.py", line 2248, in fields_view_get File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\osv\orm.py", line 2206, in apply_view_inheritance File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\osv\orm.py", line 2190, in apply_inheritance_specs File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\osv\orm.py", line 2083, in raise_view_error AttributeError: View definition error for inherited view '' on model 'sale.order': Element '<xpath expr="/form/notebook/page[@string='Sales Order']/group/field[@name='state']">' not found in parent view 'sale.view_order_form' 2014-03-29 11:06:51,596 2452 ERROR hyde openerp.tools.convert: Parse error in file:///C:/Program%20Files/OpenERP%207.0-20140322-001357/Server/server/openerp/addons/sale_exceptions/sale_view.xml:75: <record id="view_order_form" model="ir.ui.view"> <field name="name">sale_exceptions.view_order_form</field> <field name="model">sale.order</field> <field name="type">form</field> <field name="inherit_id" ref="sale.view_order_form"/> <field name="arch" type="xml"> <data> <xpath expr="/form/notebook/page[@string='Sales Order']/group/field[@name='state']" position="after"> <field name="main_exception_id" nolabel="1" attrs="{'invisible':[('main_exception_id','=', False)]}"/> </xpath> <xpath expr="/form/notebook/page[@string='Other Information']/separator[@string='Notes']" position="before"> <group name="exception" colspan="2" col="2"> <separator string="Exception" colspan="2"/> <field name="exceptions_ids" colspan="2" nolabel="1"/> </group> <group name="notes" colspan="2" col="2"> <separator colspan="2" string="Notes"/> <field colspan="2" name="note" nolabel="1"/> </group> </xpath> <xpath expr="/form/notebook/page[@string='Other Information']/separator[@string='Notes']" position="replace"/> <xpath expr="/form/notebook/page[@string='Other Information']/field[@name='note']" position="replace"/> <button name="order_confirm" position="attributes"> <attribute name="name">button_order_confirm</attribute> <attribute name="type">object</attribute> </button> </data> </field> </record> Traceback (most recent call last): File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\tools\convert.py", line 847, in parse File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\tools\convert.py", line 814, in _tag_record File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server\openerp\addons\base\ir\ir_model.py", line 969, in _update File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server\openerp\addons\base\ir\ir_ui_view.py", line 103, in create File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\osv\orm.py", line 4542, in create File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\osv\orm.py", line 1557, in _validate except_orm: ('ValidateError', u'\u9a8c\u8bc1\u5b57\u6bb5 arch \u65f6\u53d1\u751f\u9519\u8bef\uff1aInvalid XML for View Architecture!') 2014-03-29 11:06:51,596 2452 ERROR hyde openerp.netsvc: ValidateError 验证字段 arch 时发生错误:Invalid XML for View Architecture! Traceback (most recent call last): File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\netsvc.py", line 296, in dispatch_rpc File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\service\web_services.py", line 626, in dispatch File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\osv\osv.py", line 190, in execute_kw File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\osv\osv.py", line 132, in wrapper File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\osv\osv.py", line 199, in execute File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\osv\osv.py", line 187, in execute_cr File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server\openerp\addons\base\module\wizard\base_module_upgrade.py", line 90, in upgrade_module File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\pooler.py", line 39, in restart_pool File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\modules\registry.py", line 233, in new File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\modules\loading.py", line 354, in load_modules File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\modules\loading.py", line 256, in load_marked_modules File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\modules\loading.py", line 187, in load_module_graph File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\modules\loading.py", line 74, in <lambda> File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\modules\loading.py", line 124, in _load_data File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\tools\convert.py", line 954, in convert_xml_import File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\tools\convert.py", line 847, in parse File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\tools\convert.py", line 814, in _tag_record File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server\openerp\addons\base\ir\ir_model.py", line 969, in _update File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server\openerp\addons\base\ir\ir_ui_view.py", line 103, in create File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\osv\orm.py", line 4542, in create File "C:\Program Files\OpenERP 7.0-20140322-001357\Server\server.\openerp\osv\orm.py", line 1557, in _validate except_osv: ('ValidateError', u'\u9a8c\u8bc1\u5b57\u6bb5 arch \u65f6\u53d1\u751f\u9519\u8bef\uff1aInvalid XML for View Architecture!') 2014-03-29 11:06:51,726 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:06:51] "POST /web/dataset/call_button HTTP/1.1" 200 - 2014-03-29 11:06:51,857 2452 INFO ? werkzeug: 127.0.0.1 - - [29/Mar/2014 11:06:51] "GET /web/static/src/img/warning.png HTTP/1.1" 304 - 2014-03-29 11:21:41,990 2452 INFO hyde openerp.modules.loading: loading 1 modules... 2014-03-29 11:21:42,115 2452 INFO hyde openerp.modules.loading: loading 52 modules... 2014-03-29 11:21:42,378 2452 INFO hyde openerp.modules.loading: Modules loaded. 2014-03-29 11:21:42,450 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:42] "GET / HTTP/1.1" 200 - 2014-03-29 11:21:42,775 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:42] "GET /web/webclient/css?db=hyde HTTP/1.1" 304 - 2014-03-29 11:21:42,858 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:42] "GET /web/webclient/js?db=hyde HTTP/1.1" 304 - 2014-03-29 11:21:43,211 2452 INFO hyde openerp.service.web_services: successful login from 'admin' using database 'hyde' 2014-03-29 11:21:43,267 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:43] "POST /web/session/get_session_info HTTP/1.1" 200 - 2014-03-29 11:21:43,309 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:43] "POST /web/webclient/qweblist HTTP/1.1" 200 - 2014-03-29 11:21:43,558 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:43] "POST /web/proxy/load HTTP/1.1" 200 - 2014-03-29 11:21:43,732 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:43] "POST /web/session/modules HTTP/1.1" 200 - 2014-03-29 11:21:43,880 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:43] "POST /web/webclient/translations HTTP/1.1" 200 - 2014-03-29 11:21:44,091 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:44] "POST /web/dataset/call_kw HTTP/1.1" 200 - 2014-03-29 11:21:44,438 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:44] "POST /web/dataset/call_kw HTTP/1.1" 200 - 2014-03-29 11:21:44,483 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:44] "GET /web/binary/company_logo?session_id=d9282ea2a0d84f7cbe67712dc230629d HTTP/1.1" 200 - 2014-03-29 11:21:44,559 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:44] "GET /web/binary/image?model=res.users&field=image_small&id=1&session_id=d9282ea2a0d84f7cbe67712dc230629d HTTP/1.1" 304 - 2014-03-29 11:21:44,612 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:44] "POST /web/dataset/call_kw HTTP/1.1" 200 - 2014-03-29 11:21:45,105 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:45] "POST /web/menu/load HTTP/1.1" 200 - 2014-03-29 11:21:45,403 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:45] "POST /web/dataset/call_kw HTTP/1.1" 200 - 2014-03-29 11:21:45,608 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:45] "POST /web/action/load HTTP/1.1" 200 - 2014-03-29 11:21:45,789 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:45] "POST /web/menu/load_needaction HTTP/1.1" 200 - 2014-03-29 11:21:45,881 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:45] "POST /web/dataset/call_kw HTTP/1.1" 200 - 2014-03-29 11:21:45,921 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:45] "POST /web/dataset/call_kw HTTP/1.1" 200 - 2014-03-29 11:21:46,073 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:46] "POST /web/dataset/call_kw HTTP/1.1" 200 - 2014-03-29 11:21:46,114 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:46] "POST /web/dataset/call_kw HTTP/1.1" 200 - 2014-03-29 11:21:47,959 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:47] "POST /web/action/load HTTP/1.1" 200 - 2014-03-29 11:21:47,993 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:47] "POST /web/menu/load_needaction HTTP/1.1" 200 - 2014-03-29 11:21:48,226 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:48] "POST /web/dataset/call_kw HTTP/1.1" 200 - 2014-03-29 11:21:49,576 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:49] "POST /web/action/load HTTP/1.1" 200 - 2014-03-29 11:21:49,750 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:49] "POST /web/dataset/call_kw HTTP/1.1" 200 - 2014-03-29 11:21:49,792 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:49] "POST /web/dataset/call_kw HTTP/1.1" 200 - 2014-03-29 11:21:49,944 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:49] "POST /web/dataset/call_kw HTTP/1.1" 200 - 2014-03-29 11:21:49,986 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:49] "POST /web/webclient/version_info HTTP/1.1" 200 - 2014-03-29 11:21:50,325 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:50] "POST /web/dataset/search_read HTTP/1.1" 200 - 2014-03-29 11:21:50,834 2452 INFO hyde werkzeug: 127.0.0.1 - - [29/Mar/2014 11:21:50] "POST /web/dataset/call_kw HTTP/1.1" 200 -

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

0 follower(s)

Stats

Asked: 3/26/14, 7:31 PM
Seen: 1337 times
Last updated: 3/16/15, 8:10 AM