Odoo Help


ValidateError Une erreur est apparue lors de la validation du/des champ(s) arch: Invalid XML for View Architecture!

on 4/19/13, 1:20 PM 6,749 views

Hi everyone, I added a notebook in my page .xml but i have this error help please my file.xml

enter code here

<openerp> <data> <menuitem name="Gestion Ecoles" id="menu_stage_parent"/>
<menuitem name="Etudiants" id="menu_enseignant_parent1" parent="menu_stage_parent"/>

<record model="ir.ui.view" id="view_school_student_form">
    <field name="name">student.form</field>
    <field name="model">student</field>
    <field name="type">form</field>
    <field name="arch" type="xml">
        <form string="Information Eleve">
            <group colspan="4" col="8">
                <group col="6" colspan="6">
                    <field name="name" colspan="6" />
                    <field name="prenom" colspan="6"/>
                    <field name="cne" colspan="6"/>
                <group col="2" colspan="1">
                    <field name="photo"  widget='image' nolabel="1" />
            <notebook colspan="4">
               <page string="Remarques">
               <field name="remark"  nolabel="1" colspan="4"/>
<record model="ir.ui.view" id="view_school_student_tree">
    <field name="name">student.tree</field>
    <field name="model">student</field>
    <field name="type">tree</field>
    <field name="arch" type="xml">
        <tree string="stages.enseignant">
            <field name="name"/>
            <field name="prenom"/>
            <field name="cne" />
            <field name="date_adm" />
<record model="ir.actions.act_window" id="action_school_student_form">
    <field name="name">Eleves</field>
    <field name="res_model">student</field>
    <field name="view_type">form</field>
    <field name="view_mode">tree,form</field>

<!--  Et finalement il y a le menu qui contient l'action pour ouvrir la vue tree de ton module -->

<menuitem action="action_school_student_form" id="menu_stages_enseignant" parent="menu_enseignant_parent1" />

</data> </openerp>

CAn you copy and paste all the error in a paste site, please?

Francesco OpenCode
on 4/19/13, 1:41 PM


Une erreur est apparue lors de la validation du/des champ(s) arch: Invalid XML for View Architecture!

on 4/19/13, 1:42 PM

All the error. Complete.

Francesco OpenCode
on 4/19/13, 1:44 PM

it's the complete error :)

on 4/19/13, 1:47 PM

before i added the <notebook> it works...

on 4/19/13, 1:48 PM

Mmh...usually this type of errors are preceded by the part of view with the error inside.

Francesco OpenCode
on 4/19/13, 1:48 PM

notebook syntax seems ok..

Francesco OpenCode
on 4/19/13, 1:51 PM

it works now,i have to create a new db and delete the nolabel="1" colspan="4" .<field name="remark" colspan="6" /> Even if I did not understand the mistake

on 4/19/13, 2:07 PM

sheet! Add version 7.0 isnt it?

Serpent Consulting Services Pvt. Ltd.
on 4/19/13, 2:08 PM

yes version 7 have to be added,thk u :)

on 4/19/13, 2:12 PM

Francesco OpenCode

--Francesco OpenCode--

| 6 8 9
Grottaglie, Italy
--Francesco OpenCode--

Italian Odoo (OpenERP) Modules Developer LINKEDIN: http://www.linkedin.com/in/francescoapruzzese

Francesco OpenCode
On 4/19/13, 2:11 PM

You are using an OpenERP 7 form structure but not declare it. Try to change line

<form string="Information Eleve">


<form string="Information Eleve" version="7.0">

yes it's the origine of the error;thank you:)

on 4/19/13, 2:13 PM

If the answer is the correct one, please set it as correct to help future user that search some answer and, if you want, vote it with a +1...:)

Francesco OpenCode
on 4/19/13, 2:14 PM

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/19/13, 1:20 PM
Seen: 6749 times
Last updated: 3/16/15, 8:10 AM