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.

1

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

By
oumaima
on 4/19/13, 1:20 PM 5,571 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">
         <sheet>
            <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>
                <group col="2" colspan="1">
                    <field name="photo"  widget='image' nolabel="1" />
                </group>
            </group>  
            <notebook colspan="4">
               <page string="Remarques">
               <field name="remark"  nolabel="1" colspan="4"/>
                </page>
            </notebook>
            </sheet>
       </form>
    </field>
</record>
<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" />
        </tree>
    </field>
</record>
<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>
</record>

<!--  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

ValidateError

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

oumaima
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 :)

oumaima
on 4/19/13, 1:47 PM

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

oumaima
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

oumaima
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 :)

oumaima
on 4/19/13, 2:12 PM
4

Francesco OpenCode

--Francesco OpenCode--
3608
| 5 7 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">

with

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

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

oumaima
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

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