Odoo Help


Validating error in xml

on 4/16/13, 9:38 AM 1,926 views

Hi i'm new for OpenERP 7 i creating a inherit module to add two fields but i can't create here i submit my code, why this error will come

class hr_requirement_ext(osv.osv):
    _name = 'hr.requirement.ext'
    _description = 'Extension of the Reqirement process'
    _inherit = ['hr.applicant']
    _columns ={
        'doj':fields.date('Date of Birth'),
        'presentsal':fields.integer('Present Salary', size=16),

its xml file is here.

<?xml version="1.0"?>
<record model = "ir.ui.view" id ="hr_requirement_ext_form" >
    <field name ="name">hr.requirement.ext</field>
    <field name = "model"> hr.requirement.ext </field>
    <field name = "inherit_id" ref ="hr_recruitment.crm_case_form_view_job"/>
    <field name = "arch" type = "xml">
    <field name="job_id" position="before">-->
            <field name = "doj"/>
            <field name = "presentsal"/>

error message is " 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!')" help me for this problem

Thanks and regards Sridharan G Chennai

Sudhir Arya (SA)
On 4/16/13, 9:56 AM

I am suspecting _inherit = ['hr.applicant'] it should be _inherit = 'hr.applicant'.

And there are --> arrow in your xml.

Try to remove them and then restart your server and update your module.

On 4/16/13, 10:23 AM

remove --> arrow from your code in xml then it will work


On 4/17/13, 1:55 AM

Hi I try these two steps yet now same problem, help me.

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/16/13, 9:38 AM
Seen: 1926 times
Last updated: 3/16/15, 8:10 AM