Odoo Help


How to debug view XML when openerp doesn't say anything about it?

on 8/19/14, 8:48 AM 2,458 views

I'm new to openerp and using version 7. I'm trying to create a new module using the instructions from the link below:


But when i try to install the module all i'm getting is "Error occurred while validating the field(s) arch: Invalid XML for View Architecture!" is there a way to debug this? What part of my view is wrong? Everything i did is the same with the link but here is the view XML anyway:

<?xml version="1.0" encoding="utf-8"?>

       <record model="ir.ui.view" id="test_base_form">
           <field name="name">test.base.form</field>
               <field name="model">test.base</field>
               <field name="type">form</field>
               <field name="arch" type="xml">
                   <form string="Test Base">
                       <field name="name"/>
                       <field name="code"/>

        <record model="ir.ui.view" id="test_base_tree">
            <field name="name">test.base.tree</field>
            <field name="model">test.base</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Test Base">
                    <field name="name"/>
                    <field name="code"/>

        <record model="ir.actions.act_window" id="action_test_seq">
            <field name="name">Test Base</field>
            <field name="res_model">test.base</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>

        <menuitem id="menu_test_base_main" name="Test Base"/>
        <menuitem id="menu_test_base" parent="menu_test_base_main" name="Test Base" action="action_test_seq"/>


Timo Goosen
On 8/19/14, 9:58 AM

Did you try to restart openerp?


In Debian/Ubuntu Linux just do:

$ sudo service openerp restart


Then login and find the module and click upgrade.  Sometimes openerp/postgresql needs to first restart before your xml files are recognised.

It actually worked thanks but i can't mark your answer as the correct one because of my karma i guess.

on 8/19/14, 10:35 AM

Techno-Functional Associate with 7+ years of experience in Odoo (formerly known as OpenERP).

On 9/8/14, 3:08 AM


Your xml looks fine... just check wether your python objects are loaded.. check whether py files are imported in __init__.py...

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

1 follower(s)


Asked: 8/19/14, 8:48 AM
Seen: 2458 times
Last updated: 3/16/15, 8:10 AM