تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
15346 أدوات العرض

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?

الكاتب

ValidateError

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

All the error. Complete.

الكاتب

it's the complete error :)

الكاتب

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

الكاتب

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?

الكاتب

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

أفضل إجابة

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

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أكتوبر 24
7567
5
يونيو 17
6981
7
أبريل 15
7191
3
ديسمبر 23
26074
2
مارس 15
6920