Odoo Help


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

on 11/29/13, 12:55 AM 4,580 views

i facing the below errors in the log file. can any help me how to solve this error. 2013-11-29 04:52:56,028 2938 INFO erp_demo openerp.modules.module: module base_external_referentials: creating or updating database tables 2013-11-29 04:52:56,173 2938 INFO erp_demo openerp.modules.loading: module base_external_referentials: loading base_external_referentials_view.xml 2013-11-29 04:52:56,198 2938 ERROR erp_demo openerp.tools.view_validation: Invalid XML: A string attribute must be on a form node. 2013-11-29 04:52:56,204 2938 ERROR erp_demo openerp.tools.convert: Parse error in /opt/openerp/server/openerp/addons/base_external_referentials/base_external_referentials_view.xml:4:
Traceback (most recent call last): File "/opt/openerp/server/openerp/tools/convert.py", line 847, in parse self._tagsrec.tag 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 967, in _update res_id = model_obj.create(cr, uid, values, context=context) File "/opt/openerp/server/openerp/addons/base/ir/ir_ui_view.py", line 103, in create return super(view, self).create(cr, uid, values, context) File "/opt/openerp/server/openerp/osv/orm.py", line 4478, in create self._validate(cr, user, [id_new], context) File "/opt/openerp/server/openerp/osv/orm.py", line 1548, 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!') 2013-11-29 04:52:56,205 2938 ERROR erp_demo openerp.netsvc: ValidateError Error occurred while validating the field(s) arch: Invalid XML for View Architecture! Traceback (most recent call last): 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 626, in dispatch res = fn(db, uid, params) File "/opt/openerp/server/openerp/osv/osv.py", line 188, in execute_kw return self.execute(db, uid, obj, method, *args, *kw or {}) File "/opt/openerp/server/openerp/osv/osv.py", line 144, in wrapper raise except_osv(inst.name, inst.value) except_osv: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!') 2013-11-29 04:52:56,207 2938 INFO erp_demo werkzeug: - - [29/Nov/2013 04:52:56] "POST /web/dataset/call_button HTTP/1.1" 200 -

paste here the error message in the log.. :D so that we can see the reason why the error appears :D

Lady Sharmane Udtuhan
on 11/29/13, 1:15 AM

Since you have not provided the XML code that is causing this here is a simple explanation. Your XML has a character that should not be where it is. like the error states a string attribute must be on a form

on 11/29/13, 5:59 AM

Anil R. Kesariya

--Anil R. Kesariya--
| 7 6 8
Rajkot, India
--Anil R. Kesariya--

Odoo Techno Functional Expert

* Engaged with odoo since May - 2012.

* Customise existing module or develop new module base on customer requirement.

* Played key developer role in many past and running projects.

* Expert in requirement gathering of business and transforming requirement into odoo platform.

* Major expertise in core modules, database, report development and theme development.

* Integration expert.

Linkedin  : https://in.linkedin.com/in/anil-kesariya-97b20a66

Anil R. Kesariya
On 11/29/13, 6:11 AM

Hello sureshparthasarathy,

If you are creating new form or inheriting existing form than follow the existing those are working. compare your each line of code what you did. Hope You will find solution.

Try compare with existing. You might not give the exact attribute to specific tag.

Regards, Anil

On 1/16/14, 1:20 AM


first check in .py file and save it after restart your server add refresh site and check

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: 11/29/13, 12:55 AM
Seen: 4580 times
Last updated: 3/16/15, 8:10 AM