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.

0

arch: Invalid XML for View Architecture

By
wwwamouna
on 4/6/14, 12:21 PM 1,098 views

Hi! I'm trying to create an openerp module but i have this error:

ValidateError

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

Here's the file where's the problem :

<openerp> <data>
<menuitem id="anayse" name="Analyse"/> <menuitem id="test" name="Test d'analyse" parent="analyse"/>

    <record id="analyse_form_view" model="ir.ui.view">
        <field name="name">analyse.form</field>
        <field name="model">analyse</field>
        <field name="arch" type="xml">
            <form string=analyse" version="7.0">
               <field name="laboratoire" />
            </form>
        </field>
    </record>

    <record id="analyse_tree_view" model="ir.ui.view">
        <field name="name">analyse.tree</field>
        <field name="model">analyse</field>
        <field eval="7" name="priority"/>
        <field name="arch" type="xml">
            <tree  string="analyse">
                <field name="laboratoire"/>
            </tree>
        </field>
    </record>

    <record id="analyse_tree" model="ir.actions.act_window">
        <field name="name">analyse</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">analyse</field>
        <field name="view_type">form</field>
        <field name="view_id" ref="analyse_tree_view"/>
    </record>

        <menuitem action="analyse_tree"  id="test" parent="test" />

</data>

</openerp>

Can someone help me please.

Thanks in advance.

0

Med Said BARA

--Med Said BARA--
2664
| 5 5 7
Algeria
--Med Said BARA--
Med Said BARA
On 4/6/14, 2:01 PM

A missing quotation marque " before : analyse" ver="7.0">

Thanks 'Med Said' but i get the same error .

wwwamouna
on 4/6/14, 4:25 PM

The cause of the error is in your openerp-server.log. Find it or post your log.

Med Said BARA
on 4/6/14, 10:05 PM
0
silvi
On 4/7/14, 1:39 AM

<openerp> <data> <menuitem id="anayse" name="Analyse"/> <menuitem id="test" name="Test d'analyse" parent="analyse"/> <record id="analyse_form_view" model="ir.ui.view"> <field name="name">analyse.form</field> <field name="model">analyse</field> <field name="arch" type="xml"> <form string="analyse"" version="7.0"> <field name="laboratoire"/> </form> </field> </record>

<record id="analyse_tree_view" model="ir.ui.view">
    <field name="name">analyse.tree</field>
    <field name="model">analyse</field>
    <field eval="7" name="priority"/>
    <field name="arch" type="xml">
        <tree  string="analyse">
            <field name="laboratoire"/>
        </tree>
    </field>
</record>

<record id="analyse_tree" model="ir.actions.act_window"> <field name="name">analyse</field> <field name="type">ir.actions.act_window</field> <field name="res_model">analyse</field> <field name="view_type">form</field> <field name="view_mode">tree,form</field> <-- don't need to specify view_id here as you ve form and tree view
</record> <menuitem action="analyse_tree" id="test" parent="test"/> <--- Id must be unique. you can't use same id as parent.

</data> </openerp>

Missing caracter l in <menuitem id="anayse" name="Analyse"/>

Med Said BARA
on 4/7/14, 7:57 AM

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/6/14, 12:21 PM
Seen: 1098 times
Last updated: 3/16/15, 8:10 AM