Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
15238 Visualizzazioni

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>

Avatar
Abbandona

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

Autore

ValidateError

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

All the error. Complete.

Autore

it's the complete error :)

Autore

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

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

notebook syntax seems ok..

Autore

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

sheet! Add version 7.0 isnt it?

Autore

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

Risposta migliore

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">
Avatar
Abbandona
Autore

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

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

Post correlati Risposte Visualizzazioni Attività
2
ott 24
7430
5
giu 17
6930
7
apr 15
7158
3
dic 23
26022
2
mar 15
6852